Changeset 1772 for code/trunk
- Timestamp:
- Sep 11, 2008, 6:39:56 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1767 r1772 53 53 #include "ParticleProjectile.h" 54 54 #include "GraphicsEngine.h" 55 #include "SpaceShipAI.h" 55 56 56 57 namespace orxonox … … 145 146 SpaceShip::~SpaceShip() 146 147 { 148 for (ObjectList<SpaceShipAI>::iterator it = ObjectList<SpaceShipAI>::begin(); it; ++it) 149 it->shipDied(this); 150 147 151 if (this->isInitialized()) 148 152 { -
code/trunk/src/orxonox/objects/SpaceShipAI.cc
r1755 r1772 73 73 SpaceShipAI::~SpaceShipAI() 74 74 { 75 for (ObjectList<SpaceShipAI>::iterator it = ObjectList<SpaceShipAI>::begin(); it; ++it)76 it->shipDied(this);77 75 } 78 76 … … 315 313 } 316 314 317 void SpaceShipAI::shipDied(SpaceShip AI* ship)315 void SpaceShipAI::shipDied(SpaceShip* ship) 318 316 { 319 317 if (ship == this->target_) -
code/trunk/src/orxonox/objects/SpaceShipAI.h
r1747 r1772 50 50 static void createEnemy(int num); 51 51 static void killEnemies(int num); 52 void shipDied(SpaceShip AI* ship);52 void shipDied(SpaceShip* ship); 53 53 void damage(float damage); 54 54 void kill();
Note: See TracChangeset
for help on using the changeset viewer.