Changeset 9709 for code/branches/invaders/src
- Timestamp:
- Oct 21, 2013, 3:53:13 PM (11 years ago)
- Location:
- code/branches/invaders/src/modules/invader
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/CMakeLists.txt
r9702 r9709 2 2 BUILD_UNIT InvaderBuildUnit.cc 3 3 Invader.cc 4 InvaderCenterPoint.cc 5 InvaderShip.cc 4 6 END_BUILD_UNIT 5 7 ) -
code/branches/invaders/src/modules/invader/Invader.cc
r9702 r9709 42 42 #include "chat/ChatManager.h" 43 43 44 #include "InvaderShip.h" 45 // ! HACK 46 #include "infos/PlayerInfo.h" 47 48 #include "InvaderCenterPoint.h" 49 44 50 namespace orxonox 45 51 { … … 50 56 RegisterObject(Invader); 51 57 58 this->center_ = 0; 59 //this->context = context; 52 60 } 53 61 … … 56 64 } 57 65 66 // inject custom player controller 67 /** void Invader::spawnPlayer(PlayerInfo* player) 68 { 69 assert(player); 70 71 //player->startControl(new InvaderShip(this->center_->getContext() ) ); 72 }*/ 73 58 74 void Invader::start() 59 75 { … … 61 77 this->bForceSpawn_ = true; 62 78 79 if (this->center_ == NULL) // abandon mission! 80 { 81 orxout(internal_error) << "Invader: No Centerpoint specified." << endl; 82 GSLevel::startMainMenu(); 83 return; 84 } 63 85 // Call start for the parent class. 64 86 Deathmatch::start(); -
code/branches/invaders/src/modules/invader/Invader.h
r9702 r9709 40 40 #include "gametypes/Deathmatch.h" 41 41 42 #include "InvaderCenterPoint.h" 43 42 44 namespace orxonox 43 45 { … … 51 53 virtual void start(); //!< Starts the Invader minigame. 52 54 virtual void end(); ///!< Ends the Invader minigame. 55 56 //virtual void spawnPlayer(PlayerInfo* player); //!< Spawns the input player. 57 58 void setCenterpoint(InvaderCenterPoint* center) 59 { this->center_ = center; } 60 private: 61 WeakPtr<InvaderCenterPoint> center_; 62 //Context* context; 53 63 }; 54 64 } -
code/branches/invaders/src/modules/invader/InvaderPrereqs.h
r9702 r9709 69 69 { 70 70 class Invader; 71 class InvaderCenterPoint; 72 class InvaderShip; 71 73 } 72 74
Note: See TracChangeset
for help on using the changeset viewer.