Changeset 10624 for code/trunk/src/modules/invader/InvaderCenterPoint.cc
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/modules/invader/InvaderCenterPoint.cc
r9943 r10624 54 54 } 55 55 56 void InvaderCenterPoint::changedGametype()57 {58 SUPER(InvaderCenterPoint, changedGametype);59 60 // Check, whether it's still Invader.61 this->checkGametype();62 }63 64 56 void InvaderCenterPoint::checkGametype() 65 57 { 66 58 if (this->getGametype() != NULL && this->getGametype()->isA(Class(Invader))) 67 59 { 68 Invader* InvaderGametype = orxonox_cast<Invader*>(this->getGametype() .get());60 Invader* InvaderGametype = orxonox_cast<Invader*>(this->getGametype()); 69 61 InvaderGametype->setCenterpoint(this); 70 62 }
Note: See TracChangeset
for help on using the changeset viewer.