Changeset 2077 in orxonox.OLD for orxonox/trunk/src/world_entity.h
- Timestamp:
- Jul 5, 2004, 9:51:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entity.h
r2043 r2077 1 /*! 2 \file world_entity.h 3 \brief A base class for all objects in the world 4 5 This is the base class of all objects in the game-world. If you want to have an object in the world, that can realy interact with other objects and that is also dispbayable etc. you have to extend this class and override the needed functions. 6 */ 7 8 1 9 2 10 #ifndef WORLD_ENTITY_H … … 8 16 class Ability; 9 17 18 //! WorldEntity 19 /** 20 A base class for all objects in the world 21 22 This is the base class of all objects in the game-world. If you want to have an object in the world, that can realy interact with other objects and that is also dispbayable etc. you have to extend this class and override the needed functions. 23 */ 10 24 class WorldEntity { 11 25 … … 28 42 void removeAbility(Ability* ability); 29 43 30 virtual void tick(float time);44 virtual void tick(float dt); 31 45 virtual void paint(); 32 46 /* virtual void actionEvent(Event* event); */ … … 43 57 44 58 private: 45 Vector* position; 46 Vector* orientation; 59 Vector* position; //!< position of the entity 60 Vector* orientation; //!< orientation of the entity 47 61 /* List of abilities */ 48 float health; 49 float speed; 62 float health; //!< health of the entity, if any 63 float speed; //!< speed of the entity if any 50 64 /* entity can be in the air or at ground: */ 51 int airGround; 65 int airGround; //!< is it air or bound to the ground (ground=0, air=1) 52 66 53 67
Note: See TracChangeset
for help on using the changeset viewer.