Changeset 9235 in orxonox.OLD for trunk/src/world_entities/projectiles/laser.cc
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/laser.cc
r9061 r9235 42 42 43 43 this->setMinEnergy(10); 44 this->setHealthMax( 10);44 this->setHealthMax(0); 45 45 this->lifeSpan = 5.0; 46 46 … … 88 88 } 89 89 90 this->setHealth(10); 90 this->setDamage(0); 91 this->setHealth(0); 91 92 } 92 93 … … 107 108 { 108 109 if (this->hitEntity != entity && entity->isA(CL_NPC)) 109 this->destroy( );110 this->destroy( entity ); 110 111 this->hitEntity = entity; 111 112 } … … 128 129 * the function gets called, when the projectile is destroyed 129 130 */ 130 void Laser::destroy ( )131 void Laser::destroy (WorldEntity* killer) 131 132 { 132 Projectile::destroy( );133 Projectile::destroy( killer ); 133 134 PRINTF(5)("DESTROY Laser\n"); 134 135 this->lifeCycle = .95; //!< @todo calculate this usefully.
Note: See TracChangeset
for help on using the changeset viewer.