#pragma once #include "Object3d.h" #include "Weapon.h" #include "Player.h" #include #include #include class Goodie : public Object3d { public: Goodie(void); ~Goodie(void); static const int GOODIE_HEALTH = 0; static const int GOODIE_WEAPON = 1; static const int GOODIE_AMO = 2; void setGoodieType(int _type); int getGoodieType(); void loadGoodieMesh(); void init(); virtual void update(float dt); void hitByWeapon(Weapon &weapon); void hitByPlayer(Player &player); void setHealthAmount(float _healthAmount); void setWeaponType(int _type); void setArmorAmount(int _armorAmount); float getHealthAmount(); int getWeaponType(); int getArmorAmount(); void setXFile(std::string _filename); virtual Node* clone(); protected: bool firstTime; int goodieType; float healthAmount; int weaponType; int armorAmount; std::string filename; float lifeTime; float yPos; };