- Timestamp:
- Apr 29, 2012, 11:08:26 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/newlevel2012/src/modules/towerdefense/TowerDefenseCenterpoint.cc
r9112 r9136 51 51 RegisterObject(TowerDefenseCenterpoint); 52 52 53 54 53 55 this->width_ = 10; 54 56 this->height_ = 11; … … 89 91 void TowerDefenseCenterpoint::checkGametype() 90 92 { 91 93 if (this->getGametype() != NULL && this->getGametype()->isA(Class(TowerDefense))) 92 94 { 93 //TowerDefense* TowerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype().get()); 94 //TowerDefenseGametype->setCenterpoint(this); 95 // 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 96 TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype().get()); 97 towerDefenseGametype->setCenterpoint(this); 95 98 } 96 99 }
Note: See TracChangeset
for help on using the changeset viewer.