Changeset 2043 in orxonox.OLD for orxonox/trunk/src/world_entity.h
- Timestamp:
- Jun 30, 2004, 8:38:43 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entity.h
r2036 r2043 5 5 #include "data_tank.h" 6 6 7 class Vector; 8 class Ability; 7 9 8 10 class WorldEntity { … … 13 15 14 16 15 /*void setPosition( Vector position );*/ 16 /* Vector* void getPosition();*/ 17 void setOrientation(/* Vector orientation*/); 18 /* Vector* */ void getOrientation(); 17 void setPosition(Vector* position); 18 Vector* getPosition(); 19 void setOrientation(Vector* orientation); 20 Vector* getOrientation(); 21 void setSpawnPoint(Vector* place); 19 22 void setSpeed(float speed); 20 23 float getSpeed(); … … 22 25 float getHealth(); 23 26 24 void addAbility( );25 void removeAbility( );27 void addAbility(Ability* ability); 28 void removeAbility(Ability* ability); 26 29 27 virtual void tick(float dt);30 virtual void tick(float time); 28 31 virtual void paint(); 29 32 /* virtual void actionEvent(Event* event); */ 30 virtual void collide(WorldEntity* we /*, Vector n */);31 virtual void h urt();33 virtual void collide(WorldEntity* we, Vector loc); 34 virtual void hit(WorldEntity* weapon, Vector loc); 32 35 virtual void destroy(); 33 36 37 virtual void entityPreEnter(); 38 virtual void entityPostEnter(); 39 virtual void entityPreQuit(); 40 virtual void entityPostQuit(); 41 42 43 34 44 private: 35 /* Vector* position; */36 /* Vector* orientation; */45 Vector* position; 46 Vector* orientation; 37 47 /* List of abilities */ 38 48 float health; 39 49 float speed; 50 /* entity can be in the air or at ground: */ 51 int airGround; 52 40 53 41 54
Note: See TracChangeset
for help on using the changeset viewer.