Changeset 2080 in orxonox.OLD for orxonox/branches/chris/src/world_entity.h
- Timestamp:
- Jul 6, 2004, 10:29:05 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/world_entity.h
r2068 r2080 9 9 class Ability; 10 10 11 class WorldEntity { 11 class WorldEntity 12 { 13 friend class World; 12 14 13 15 public: 14 WorldEntity ( );16 WorldEntity (bool isFree); 15 17 ~WorldEntity (); 16 18 19 Location* get_location (); 20 Placement* get_placement (); 21 void set_collision (CollisionCluster* newhull); 22 23 //void addAbility(Ability* ability); 24 //void removeAbility(Ability* ability); 17 25 18 void setPosition(Vector* position); 19 Vector* getPosition(); 20 void setOrientation(Vector* orientation); 21 Vector* getOrientation(); 22 void setSpawnPoint(Vector* place); 23 void setSpeed(float speed); 24 float getSpeed(); 25 void setHealth(float health); 26 float getHealth(); 27 28 void addAbility(Ability* ability); 29 void removeAbility(Ability* ability); 30 26 virtual void post_spawn (); 31 27 virtual void tick (float time); 32 virtual void draw ();33 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags);34 28 virtual void hit (WorldEntity* weapon, Vector loc); 35 29 virtual void destroy (); 36 virtual void command (Command* cmd); 30 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 31 virtual void command (Command* cmd); 32 33 virtual void draw (); 37 34 virtual void get_lookat (Location* locbuf); 38 35 39 virtual void entityPreEnter(); 40 virtual void entityPostEnter(); 41 virtual void entityPreQuit(); 42 virtual void entityPostQuit(); 36 virtual void left_world (); 43 37 38 private: 44 39 bool bCollide; 45 40 bool bDraw; 46 47 private:41 bool bFree; // Whether entity movement is bound to the track 42 48 43 WorldEntity* owner; 49 44 CollisionCluster* collisioncluster; 50 45 Placement place; 51 46 Location loc; 52 /* List of abilities */53 float health;54 float speed;55 /* entity can be in the air or at ground: */56 int airGround;57 47 58 59 48 void init( Location* spawnloc, WorldEntity* spawnowner); 49 void init( Placement* spawnplc, WorldEntity* spawnowner); 60 50 }; 61 51
Note: See TracChangeset
for help on using the changeset viewer.