Changeset 10571 for code/branches/core7/src/modules/towerdefense
- Timestamp:
- Sep 9, 2015, 1:11:13 PM (9 years ago)
- Location:
- code/branches/core7/src/modules/towerdefense
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/modules/towerdefense/TowerDefenseCenterpoint.cc
r9667 r10571 103 103 { 104 104 // 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 105 TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype() .get());105 TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype()); 106 106 towerDefenseGametype->setCenterpoint(this); 107 107 } -
code/branches/core7/src/modules/towerdefense/TowerDefenseEnemy.cc
r10557 r10571 29 29 this->setCollisionType(WorldEntity::Dynamic); 30 30 //needed to keep track of the PlayerStats coded in TowerDefense.h 31 this->td = orxonox_cast<TowerDefense*>(this->getGametype() .get());31 this->td = orxonox_cast<TowerDefense*>(this->getGametype()); 32 32 once_=false; 33 33 -
code/branches/core7/src/modules/towerdefense/TowerDefenseHUDController.cc
r10258 r10571 80 80 if (this->getOwner() && this->getOwner()->getGametype()) 81 81 { 82 this->td = orxonox_cast<TowerDefense*>(this->getOwner()->getGametype() .get());82 this->td = orxonox_cast<TowerDefense*>(this->getOwner()->getGametype()); 83 83 } 84 84 else
Note: See TracChangeset
for help on using the changeset viewer.