Changeset 9162 in orxonox.OLD for branches/presentation/src/world_entities/projectiles
- Timestamp:
- Jul 4, 2006, 6:15:10 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities/projectiles
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/projectiles/guided_missile.cc
r8362 r9162 135 135 { 136 136 if (this->hitEntity != entity) 137 this->destroy( );137 this->destroy( entity ); 138 138 this->hitEntity = entity; 139 139 } … … 180 180 * the function gets called, when the projectile is destroyed 181 181 */ 182 void GuidedMissile::destroy ( )183 { 184 Projectile::destroy( );182 void GuidedMissile::destroy (WorldEntity* killer) 183 { 184 Projectile::destroy( killer ); 185 185 PRINTF(5)("DESTROY GuidedMissile\n"); 186 186 this->lifeCycle = .95; //!< @todo calculate this usefully. -
branches/presentation/src/world_entities/projectiles/guided_missile.h
r6622 r9162 26 26 virtual void collidesWith(WorldEntity* entity, const Vector& location); 27 27 28 virtual void destroy ( );28 virtual void destroy (WorldEntity* killer); 29 29 30 30 virtual void tick (float time); -
branches/presentation/src/world_entities/projectiles/hyperblast.cc
r8362 r9162 126 126 * the function gets called, when the projectile is destroyed 127 127 */ 128 void Hyperblast::destroy ( )128 void Hyperblast::destroy (WorldEntity* killer) 129 129 { 130 Projectile::destroy( );130 Projectile::destroy( killer ); 131 131 132 132 PRINTF(5)("DESTROY Hyperblast\n"); -
branches/presentation/src/world_entities/projectiles/hyperblast.h
r6821 r9162 27 27 virtual void collidesWith(WorldEntity* entity, const Vector& location); 28 28 29 virtual void destroy ( );29 virtual void destroy (WorldEntity* killer); 30 30 31 31 virtual void tick (float time); -
branches/presentation/src/world_entities/projectiles/laser.cc
r9061 r9162 107 107 { 108 108 if (this->hitEntity != entity && entity->isA(CL_NPC)) 109 this->destroy( );109 this->destroy( entity ); 110 110 this->hitEntity = entity; 111 111 } … … 128 128 * the function gets called, when the projectile is destroyed 129 129 */ 130 void Laser::destroy ( )130 void Laser::destroy (WorldEntity* killer) 131 131 { 132 Projectile::destroy( );132 Projectile::destroy( killer ); 133 133 PRINTF(5)("DESTROY Laser\n"); 134 134 this->lifeCycle = .95; //!< @todo calculate this usefully. -
branches/presentation/src/world_entities/projectiles/laser.h
r6622 r9162 27 27 virtual void collidesWith(WorldEntity* entity, const Vector& location); 28 28 29 virtual void destroy ( );29 virtual void destroy (WorldEntity* killer); 30 30 31 31 virtual void tick (float dt); -
branches/presentation/src/world_entities/projectiles/projectile.cc
r8362 r9162 162 162 163 163 if (this->tickLifeCycle(dt)) 164 this->destroy( );164 this->destroy( NULL ); 165 165 } 166 166 … … 169 169 * the function gets called, when the projectile is destroyed 170 170 */ 171 void Projectile::destroy ( )171 void Projectile::destroy (WorldEntity* killer) 172 172 { 173 173 if (this->explosionBuffer != NULL) -
branches/presentation/src/world_entities/projectiles/projectile.h
r7460 r9162 41 41 virtual void deactivate() = 0; 42 42 43 virtual void destroy ( );43 virtual void destroy (WorldEntity* killer); 44 44 45 45 virtual void tick (float dt); -
branches/presentation/src/world_entities/projectiles/rocket.cc
r8362 r9162 128 128 { 129 129 if (this->hitEntity != entity) 130 this->destroy( );130 this->destroy( entity ); 131 131 this->hitEntity = entity; 132 132 } … … 149 149 * the function gets called, when the projectile is destroyed 150 150 */ 151 void Rocket::destroy ( )151 void Rocket::destroy (WorldEntity* killer) 152 152 { 153 Projectile::destroy( );153 Projectile::destroy( killer ); 154 154 155 155 PRINTF(5)("DESTROY Rocket\n"); -
branches/presentation/src/world_entities/projectiles/rocket.h
r6622 r9162 27 27 virtual void collidesWith(WorldEntity* entity, const Vector& location); 28 28 29 virtual void destroy ( );29 virtual void destroy (WorldEntity* killer); 30 30 31 31 virtual void tick (float time); -
branches/presentation/src/world_entities/projectiles/test_bullet.cc
r8362 r9162 119 119 { 120 120 if (this->hitEntity != entity && entity->isA(CL_NPC)) 121 this->destroy( );121 this->destroy( entity ); 122 122 this->hitEntity = entity; 123 123 } … … 147 147 * the function gets called, when the projectile is destroyed 148 148 */ 149 void TestBullet::destroy ( )149 void TestBullet::destroy (WorldEntity* killer) 150 150 { 151 151 PRINTF(5)("DESTROY TestBullet\n"); -
branches/presentation/src/world_entities/projectiles/test_bullet.h
r6624 r9162 27 27 virtual void collidesWith(WorldEntity* entity, const Vector& location); 28 28 29 virtual void destroy ( );29 virtual void destroy (WorldEntity* killer); 30 30 31 31 virtual void tick (float time);
Note: See TracChangeset
for help on using the changeset viewer.