Changeset 10624 for code/trunk/src/modules/towerdefense
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/modules/towerdefense/CMakeLists.txt
r10622 r10624 11 11 12 12 ORXONOX_ADD_LIBRARY(towerdefense 13 MODULE13 PLUGIN 14 14 FIND_HEADER_FILES 15 15 LINK_LIBRARIES -
code/trunk/src/modules/towerdefense/TDCoordinate.h
r10622 r10624 2 2 #define _TDCoordinate_H__ 3 3 4 #include "core/CoreIncludes.h"5 4 #include "TDCoordinate.h" 6 5 //#include "towerdefense/TowerDefense.h" … … 13 12 //Class to save the Coordinates in a class instead of struct 14 13 //Convert 2d coordinates to 3d in order to set waypoints 15 class _TowerDefenseExport TDCoordinate : public OrxonoxClass14 class _TowerDefenseExport TDCoordinate 16 15 { 17 16 public: -
code/trunk/src/modules/towerdefense/TowerDefense.cc
r10622 r10624 85 85 #include "core/CoreIncludes.h" 86 86 /* Part of a temporary hack to allow the player to add towers */ 87 #include "core/command/ConsoleCommand .h"87 #include "core/command/ConsoleCommandIncludes.h" 88 88 #include <cmath> 89 89 -
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 } -
code/trunk/src/modules/towerdefense/TowerDefenseCenterpoint.h
r10622 r10624 53 53 54 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 55 virtual void changedGametype();56 55 57 56 /** -
code/trunk/src/modules/towerdefense/TowerDefenseEnemy.cc
r10622 r10624 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 … … 53 53 } 54 54 55 WeakPtr<TowerDefense>TowerDefenseEnemy::getGame()55 TowerDefense* TowerDefenseEnemy::getGame() 56 56 { 57 57 if (game == NULL) -
code/trunk/src/modules/towerdefense/TowerDefenseEnemy.h
r10258 r10624 47 47 48 48 private: 49 WeakPtr<TowerDefense>getGame();49 TowerDefense* getGame(); 50 50 WeakPtr<TowerDefense> game; 51 51 TowerDefense* td; -
code/trunk/src/modules/towerdefense/TowerDefenseHUDController.cc
r10258 r10624 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.