- Timestamp:
- Mar 16, 2005, 5:53:20 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/environment.cc
r3566 r3578 41 41 void Environment::tick (float time) {} 42 42 43 void Environment::hit (WorldEntity* weapon, Vector loc) {}43 void Environment::hit (WorldEntity* weapon, Vector* loc) {} 44 44 45 45 void Environment::destroy () {} -
orxonox/trunk/src/world_entities/environment.h
r3573 r3578 15 15 16 16 virtual void tick (float time); 17 virtual void hit (WorldEntity* weapon, Vector loc);17 virtual void hit (WorldEntity* weapon, Vector* loc); 18 18 virtual void destroy (); 19 19 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); -
orxonox/trunk/src/world_entities/player.cc
r3566 r3578 68 68 \param loc ?? 69 69 */ 70 void Player::hit (WorldEntity* weapon, Vector loc)70 void Player::hit (WorldEntity* weapon, Vector* loc) 71 71 { 72 72 } -
orxonox/trunk/src/world_entities/player.h
r3544 r3578 22 22 virtual void postSpawn(); 23 23 virtual void tick(float time); 24 virtual void hit(WorldEntity* weapon, Vector loc);24 virtual void hit(WorldEntity* weapon, Vector* loc); 25 25 virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 26 26 virtual void command(Command* cmd); -
orxonox/trunk/src/world_entities/primitive.cc
r3566 r3578 46 46 } 47 47 48 void Primitive::hit (WorldEntity* weapon, Vector loc) {}48 void Primitive::hit (WorldEntity* weapon, Vector* loc) {} 49 49 50 50 -
orxonox/trunk/src/world_entities/primitive.h
r3544 r3578 15 15 16 16 virtual void tick (float time); 17 virtual void hit (WorldEntity* weapon, Vector loc);17 virtual void hit (WorldEntity* weapon, Vector* loc); 18 18 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 19 19 virtual void draw (); -
orxonox/trunk/src/world_entities/projectile.cc
r3574 r3578 26 26 27 27 28 28 /** 29 \brief standard constructor 30 */ 29 31 Projectile::Projectile () : WorldEntity() 30 32 { … … 33 35 34 36 35 37 /** 38 \brief standard deconstructor 39 */ 36 40 Projectile::~Projectile () 37 41 { … … 39 43 } 40 44 45 46 /** 47 \brief signal tick, time dependent things will be handled here 48 \param time since last tick 49 */ 41 50 void Projectile::tick (float time) 42 51 {} 43 52 44 void Projectile::hit (WorldEntity* weapon, Vector loc) 53 /** 54 \brief the projectile gets hit by another entity 55 \param the other entity 56 \param place where it is hit 57 */ 58 void Projectile::hit (WorldEntity* entity, Vector* place) 45 59 {} 46 60 61 62 /** 63 \brief the function gets called, when the projectile is destroyed 64 */ 47 65 void Projectile::destroy () 48 66 {} 49 67 50 void Projectile::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags)51 {}52 68 53 69 void Projectile::draw () -
orxonox/trunk/src/world_entities/projectile.h
r3573 r3578 18 18 virtual ~Projectile (); 19 19 20 20 virtual void hit (WorldEntity* weapon, Vector* loc); 21 virtual void destroy (); 22 21 23 virtual void tick (float time); 22 virtual void hit (WorldEntity* weapon, Vector loc);23 virtual void destroy ();24 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags);25 24 virtual void draw (); 26 25 26 private: 27 int health; //<! the healt of a projectile 28 int maxHelath; //<! the max healt of a projectile 29 int damageToAirCraft; //<! damage dealt to a air craft 30 int damageToGroundCraft; //<! damage dealt to a ground craft 27 31 }; 28 32 -
orxonox/trunk/src/world_entities/weapon.cc
r3577 r3578 189 189 can destroy the weapons of enemies or vice versa. 190 190 */ 191 void Weapon::hit (WorldEntity* entity, Vector position)191 void Weapon::hit (WorldEntity* entity, Vector* position) 192 192 {} 193 193 -
orxonox/trunk/src/world_entities/weapon.h
r3577 r3578 53 53 54 54 void fire(); 55 virtual void hit (WorldEntity* weapon, Vector loc);55 virtual void hit (WorldEntity* weapon, Vector* loc); 56 56 virtual void destroy (); 57 57 -
orxonox/trunk/src/world_entities/world_entity.cc
r3566 r3578 156 156 calculate the damage depending 157 157 */ 158 void WorldEntity::hit(WorldEntity* weapon, Vector loc) {}158 void WorldEntity::hit(WorldEntity* weapon, Vector* loc) {} 159 159 160 160 -
orxonox/trunk/src/world_entities/world_entity.h
r3566 r3578 34 34 virtual void postSpawn (); 35 35 virtual void tick (float time); 36 virtual void hit (WorldEntity* weapon, Vector loc);36 virtual void hit (WorldEntity* weapon, Vector* loc); 37 37 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 38 38 virtual void command (Command* cmd);
Note: See TracChangeset
for help on using the changeset viewer.