Changeset 10117 in orxonox.OLD for branches/playability/src/world_entities/projectiles
- Timestamp:
- Dec 20, 2006, 12:31:27 AM (18 years ago)
- Location:
- branches/playability/src/world_entities/projectiles
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/lbolt.cc
r10104 r10117 47 47 this->setMinEnergy(1); 48 48 this->setHealthMax(0); 49 this->lifeSpan = 5.0;49 this->lifeSpan = 2.0; 50 50 51 51 this->emitter = new DotEmitter(100, 5, M_2_PI); -
branches/playability/src/world_entities/projectiles/mbolt.cc
r10113 r10117 53 53 this->setMinEnergy(4); 54 54 this->setHealthMax(0); 55 this->lifeSpan = 5.0;55 this->lifeSpan = 3.0; 56 56 this->angle = 0; 57 57 … … 137 137 this->lifeCycle = 0.0; 138 138 139 //this->toList(OM_NULL);140 139 this->toList(OM_DEAD); 141 //this->removeNode();140 this->removeNode(); 142 141 MBolt::fastFactory->kill(this); 143 142 } … … 146 145 void MBolt::collidesWith(WorldEntity* entity, const Vector& location) 147 146 { 148 PRINTF(0)("MBolt collides pretest\n"); 149 150 if( entity == NULL) 147 148 if (this->hitEntity != entity) 149 this->destroy( entity ); 150 this->hitEntity = entity; 151 dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 152 this->destroy(this); 153 154 return; 155 156 if( entity == NULL || dynamic_cast<SpaceShip*>(entity) == NULL) 151 157 return; 152 158 153 PRINTF(0)("MBolt collides\n");154 159 dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); 155 160 //entity->destroy(this); … … 179 184 void MBolt::destroy (WorldEntity* killer) 180 185 { 186 //this->deactivate(); 181 187 Projectile::destroy( killer ); 182 188 PRINTF(5)("DESTROY MBolt\n"); … … 211 217 212 218 } 213 -
branches/playability/src/world_entities/projectiles/mbolt.h
r10081 r10117 35 35 virtual void draw () const; 36 36 37 38 37 private: 39 38 static FastFactory* fastFactory; -
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10109 r10117 136 136 this->destroy( entity ); 137 137 this->hitEntity = entity; 138 dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());138 //dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 139 139 this->destroy(this); 140 140 }
Note: See TracChangeset
for help on using the changeset viewer.