Changeset 3605 in orxonox.OLD for orxonox/branches/levelloader/src/world_entities/player.h
- Timestamp:
- Mar 18, 2005, 11:52:15 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/world_entities/player.h
r3542 r3605 9 9 #include "world_entity.h" 10 10 11 template<class T> class tList; 11 12 class OBJModel; 13 class Weapon; 12 14 13 15 //! Basic controllable WorldEntity … … 19 21 Player(bool isFree = false); 20 22 Player(TiXmlElement* root); 21 ~Player(); 23 virtual ~Player(); 24 25 void addWeapon(Weapon* weapon); 26 void removeWeapon(Weapon* weapon); 22 27 23 28 virtual void postSpawn(); 24 virtual void tick(float time); 25 virtual void hit(WorldEntity* weapon, Vector loc); 26 virtual void destroy(); 29 virtual void leftWorld(); 30 virtual void hit(WorldEntity* weapon, Vector* loc); 27 31 virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 32 33 virtual void tick(float time); 34 virtual void draw(); 35 28 36 virtual void command(Command* cmd); 29 30 virtual void draw();31 // virtual void getLookat(Location* locbuf);32 33 virtual void leftWorld();34 37 35 38 private: … … 41 44 bool bDescend; //!< descend button presses. 42 45 bool bFire; //!< fire button pressed. 46 bool bWeaponChange; //!< weapon change button pressed 47 48 tList<Weapon>* weapons;//!< a list of weapon 49 Weapon* activeWeapon; //!< the weapon that is currenty activated 43 50 44 51 Vector velocity; //!< the velocity of the player. … … 47 54 48 55 void move(float time); 56 void fire(void); 49 57 50 58 };
Note: See TracChangeset
for help on using the changeset viewer.