Changeset 2551 in orxonox.OLD for orxonox/trunk/src/player.h
- Timestamp:
- Oct 11, 2004, 12:53:43 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/player.h
r2190 r2551 12 12 class Player : public WorldEntity 13 13 { 14 15 14 friend class World; 15 16 16 public: 17 17 Player (bool isFree = false); 18 18 ~Player (); 19 20 19 20 virtual void post_spawn (); 21 21 virtual void tick (float time); 22 22 virtual void hit (WorldEntity* weapon, Vector loc); 23 23 virtual void destroy (); 24 24 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 25 25 virtual void command (Command* cmd); 26 26 27 27 virtual void draw (); 28 28 virtual void get_lookat (Location* locbuf); 29 30 31 29 30 virtual void left_world (); 31 32 32 private: 33 34 35 36 37 38 39 40 33 bool bUp, bDown, bLeft, bRight, bAscend, bDescend; 34 bool bFire; 35 Vector velocity; 36 float travel_speed; 37 float acceleration; 38 39 void move (float time); 40 41 41 }; 42 42
Note: See TracChangeset
for help on using the changeset viewer.