Changeset 2096 in orxonox.OLD for orxonox/branches/chris/src/player.h
- Timestamp:
- Jul 9, 2004, 11:14:42 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/player.h
r2058 r2096 5 5 #include "world_entity.h" 6 6 7 class ShootLaser;8 class ShootRocket;9 10 11 7 class Player : public WorldEntity 12 8 { 9 friend class World; 13 10 14 11 public: 15 Player ( );12 Player (bool isFree); 16 13 ~Player (); 17 14 18 /* position of the spacecraft */ 19 float xCor; 20 float yCor; 21 float zCor; 15 virtual void post_spawn (); 16 virtual void tick (float time); 17 virtual void hit (WorldEntity* weapon, Vector loc); 18 virtual void destroy (); 19 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 20 virtual void command (Command* cmd); 22 21 23 float collisionRadius; 22 virtual void draw (); 23 virtual void get_lookat (Location* locbuf); 24 24 25 26 /* this player wanna shoot? so include a ref to ShootLaser */ 27 ShootLaser* shootLaser; 28 ShootRocket* shootRocket; 29 30 void setPosition(float x, float y, float z); 31 void getPosition(float* x, float* y, float* z); 32 void setCollisionRadius(float radius); 33 void paint(); 34 void goX(float x); 35 void goY(float y); 36 void goZ(float x); 37 void shoot(int n); 38 // void addIO(InputOutput *io); 39 void drawPlayer(void); 25 virtual void left_world (); 40 26 41 27 private: 42 43 28 bool bUp, bDown, bLeft, bRight, bAscend, bDescend; 29 bool bFire; 30 Vector velocity; 31 float travel_speed; 32 float acceleration; 33 34 void move (float time); 35 44 36 }; 45 37
Note: See TracChangeset
for help on using the changeset viewer.