Changeset 3583 in orxonox.OLD for orxonox/trunk/src/world_entities/player.h
- Timestamp:
- Mar 16, 2005, 11:08:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.h
r3578 r3583 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 virtual ~Player(); 23 24 void addWeapon(Weapon* weapon); 25 void removeWeapon(Weapon* weapon); 21 26 22 27 virtual void postSpawn(); 23 virtual void tick(float time);28 virtual void leftWorld(); 24 29 virtual void hit(WorldEntity* weapon, Vector* loc); 25 30 virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 31 32 virtual void tick(float time); 33 virtual void draw(); 34 26 35 virtual void command(Command* cmd); 27 28 virtual void draw();29 // virtual void getLookat(Location* locbuf);30 31 virtual void leftWorld();32 36 33 37 private: … … 40 44 bool bFire; //!< fire button pressed. 41 45 46 tList<Weapon>* weapons;//!< a list of weapon 47 42 48 Vector velocity; //!< the velocity of the player. 43 49 float travelSpeed; //!< the current speed of the player (to make soft movement)
Note: See TracChangeset
for help on using the changeset viewer.