Changeset 9667 for code/trunk/src/modules/towerdefense
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/modules/towerdefense/Tower.cc
r9272 r9667 16 16 namespace orxonox 17 17 { 18 CreateFactory(Tower);18 RegisterClass(Tower); 19 19 20 20 /** … … 22 22 Constructor. Registers and initializes the object. 23 23 */ 24 Tower::Tower( BaseObject* creator) : Pawn(creator)24 Tower::Tower(Context* context) : Pawn(context) 25 25 { 26 26 RegisterObject(Tower); -
code/trunk/src/modules/towerdefense/Tower.h
r9272 r9667 27 27 { 28 28 public: 29 Tower( BaseObject* creator);29 Tower(Context* context); 30 30 virtual ~Tower() {}; 31 31 -
code/trunk/src/modules/towerdefense/TowerDefense.cc
r9347 r9667 87 87 88 88 #include "chat/ChatManager.h" 89 #include "core/CoreIncludes.h" 89 90 90 91 /* Part of a temporary hack to allow the player to add towers */ … … 93 94 namespace orxonox 94 95 { 95 CreateUnloadableFactory(TowerDefense);96 97 TowerDefense::TowerDefense( BaseObject* creator) : Deathmatch(creator)96 RegisterUnloadableClass(TowerDefense); 97 98 TowerDefense::TowerDefense(Context* context) : Deathmatch(context) 98 99 { 99 100 RegisterObject(TowerDefense); … … 189 190 190 191 // Create tower 191 Tower* newTower = new Tower(this->center_ );192 Tower* newTower = new Tower(this->center_->getContext()); 192 193 newTower->addTemplate(this->center_->getTowerTemplate()); 193 194 -
code/trunk/src/modules/towerdefense/TowerDefense.h
r9347 r9667 48 48 { 49 49 public: 50 TowerDefense( BaseObject* creator);50 TowerDefense(Context* context); 51 51 virtual ~TowerDefense(); 52 52 -
code/trunk/src/modules/towerdefense/TowerDefenseCenterpoint.cc
r9272 r9667 41 41 namespace orxonox 42 42 { 43 CreateFactory(TowerDefenseCenterpoint);43 RegisterClass(TowerDefenseCenterpoint); 44 44 45 45 /** … … 47 47 Constructor. Registers and initializes the object and checks whether the gametype is actually TowerDefense. 48 48 */ 49 TowerDefenseCenterpoint::TowerDefenseCenterpoint( BaseObject* creator) : MobileEntity(creator)49 TowerDefenseCenterpoint::TowerDefenseCenterpoint(Context* context) : MobileEntity(context) 50 50 { 51 51 RegisterObject(TowerDefenseCenterpoint); -
code/trunk/src/modules/towerdefense/TowerDefenseCenterpoint.h
r9272 r9667 49 49 { 50 50 public: 51 TowerDefenseCenterpoint( BaseObject* creator);51 TowerDefenseCenterpoint(Context* context); 52 52 virtual ~TowerDefenseCenterpoint() {} 53 53 -
code/trunk/src/modules/towerdefense/TowerDefenseController.cc
r9271 r9667 36 36 namespace orxonox 37 37 { 38 CreateFactory(TowerDefenseController);38 RegisterClass(TowerDefenseController); 39 39 40 TowerDefenseController::TowerDefenseController( BaseObject* creator) : WaypointController(creator)40 TowerDefenseController::TowerDefenseController(Context* context) : WaypointController(context) 41 41 { 42 42 RegisterObject(TowerDefenseController); -
code/trunk/src/modules/towerdefense/TowerDefenseController.h
r9271 r9667 40 40 { 41 41 public: 42 TowerDefenseController( BaseObject* creator);42 TowerDefenseController(Context* context); 43 43 virtual ~TowerDefenseController() {} 44 44 -
code/trunk/src/modules/towerdefense/TowerDefenseHUDController.cc
r9272 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(TowerDefenseHUDController);37 RegisterClass(TowerDefenseHUDController); 38 38 39 TowerDefenseHUDController::TowerDefenseHUDController( BaseObject* creator) : OverlayText(creator)39 TowerDefenseHUDController::TowerDefenseHUDController(Context* context) : OverlayText(context) 40 40 { 41 41 RegisterObject(TowerDefenseHUDController); -
code/trunk/src/modules/towerdefense/TowerDefenseHUDController.h
r9272 r9667 49 49 { 50 50 public: 51 TowerDefenseHUDController( BaseObject* creator);51 TowerDefenseHUDController(Context* context); 52 52 virtual ~TowerDefenseHUDController(); 53 53
Note: See TracChangeset
for help on using the changeset viewer.