- Timestamp:
- Dec 6, 2013, 3:09:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/InvaderEnemy.cc
r9868 r9874 34 34 #include "invader/InvaderPrereqs.h" 35 35 #include "InvaderEnemy.h" 36 // #include "worldentities/pawns/SpaceShip.h"36 #include "InvaderShip.h" 37 37 38 38 namespace orxonox … … 64 64 inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 65 65 { 66 if(orxonox_cast< Pawn*>(otherObject))66 if(orxonox_cast<InvaderShip*>(otherObject)) 67 67 removeHealth(2000); 68 68 return false; … … 81 81 void InvaderEnemy::damage(float damage, float healthdamage, float shielddamage, Pawn* originator) 82 82 { 83 if (getGame()) 83 Pawn::damage(damage, healthdamage, shielddamage, originator); 84 if (getGame() && orxonox_cast<InvaderShip*>(originator) != NULL && getHealth() <= 0) 84 85 getGame()->addPoints(42); 85 Pawn::damage(damage, healthdamage, shielddamage, originator);86 86 } 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.