Changeset 4780 in orxonox.OLD for orxonox/trunk/src/world_entities/player.h
- Timestamp:
- Jul 2, 2005, 10:55:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.h
r4746 r4780 1 /*! 1 /*! 2 2 \file player.h 3 3 \brief Implements a basic controllable WorldEntity … … 22 22 { 23 23 friend class World; 24 24 25 25 public: 26 26 Player(); … … 28 28 virtual ~Player(); 29 29 30 void init(); 31 void loadParams(const TiXmlElement* root); 32 30 33 void addWeapon(Weapon* weapon); 31 34 void removeWeapon(Weapon* weapon); 32 35 33 36 virtual void postSpawn(); 34 37 virtual void leftWorld(); … … 36 39 virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 37 40 38 virtual void tick(float time); 41 virtual void tick(float time); 39 42 virtual void draw(); 40 43 … … 42 45 43 46 virtual void process(const Event &event); 44 47 45 48 private: 46 49 bool bUp; //!< up button pressed. … … 63 66 float travelSpeed; //!< the current speed of the player (to make soft movement) 64 67 float acceleration; //!< the acceleration of the player. 65 68 66 69 void move(float time); 67 70 void weapon(); 68 71 69 72 }; 70 73
Note: See TracChangeset
for help on using the changeset viewer.