- 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/towerdefense/TowerDefenseCenterpoint.cc
r10622 r10624 83 83 /** 84 84 @brief 85 Is called when the gametype has changed.86 */87 void TowerDefenseCenterpoint::changedGametype()88 {89 SUPER(TowerDefenseCenterpoint, changedGametype);90 91 // Check, whether it's still TowerDefense.92 this->checkGametype();93 }94 95 /**96 @brief97 85 Checks whether the gametype is TowerDefense and if it is, sets its centerpoint. 98 86 */ … … 102 90 { 103 91 // Sets the centerpoint of the gametype. The gametype uses this to later spawn in towers, he needs the tower template stored in the center point 104 TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype() .get());92 TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype()); 105 93 towerDefenseGametype->setCenterpoint(this); 106 94 }
Note: See TracChangeset
for help on using the changeset viewer.