Changeset 10737 in orxonox.OLD for branches/presentation/src/world_entities/projectiles/nadion_blast.cc
- Timestamp:
- Jun 20, 2007, 6:17:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/projectiles/nadion_blast.cc
r10728 r10737 23 23 #include "model.h" 24 24 25 #include "world_entities/npcs/actionbox_enemy.h" 25 26 #include "world_entities/npcs/npc.h" 26 27 … … 149 150 } 150 151 151 /* 152 void NadionBlast::hit (float damage, WorldEntity* entity )153 {154 155 if (this->hitEntity != entity)156 this->destroy( entity );157 this->hitEntity = entity;158 // dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());159 //this->destroy(this);160 this->deactivate();161 162 return;163 164 }*/ 152 153 // void NadionBlast::hit (float damage, WorldEntity* entity ) 154 // { 155 // 156 // if (this->hitEntity != entity) 157 // this->destroy( entity ); 158 // this->hitEntity = entity; 159 // // dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 160 // //this->destroy(this); 161 // this->deactivate(); 162 // 163 // return; 164 // 165 // } 165 166 166 167 /** … … 180 181 // this->trail->tick(dt); 181 182 182 for( ObjectList< NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++)183 for( ObjectList<ActionboxEnemy>::const_iterator eIterator = ActionboxEnemy::objectList().begin(); eIterator !=ActionboxEnemy::objectList().end(); eIterator++) 183 184 { 184 185 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8) … … 215 216 // glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile 216 217 // HACK, need to be removed, once the AbsDir is correct, replace with the one above 217 glRotatef(this->angle, this->flightDirection.x, this->flightDirection.y, this->flightDirection.z);218 // glRotatef(this->angle, this->flightDirection.x, this->flightDirection.y, this->flightDirection.z); 218 219 this->getAbsDir().matrix (matrix); 219 220 glMultMatrixf((float*)matrix);
Note: See TracChangeset
for help on using the changeset viewer.