Changeset 11269 for code/branches/StoryModeMap_HS16/src/orxonox
- Timestamp:
- Nov 7, 2016, 3:56:14 PM (8 years ago)
- Location:
- code/branches/StoryModeMap_HS16/src/orxonox/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/StoryModeMap_HS16/src/orxonox/gametypes/StoryMode.cc
r11255 r11269 42 42 { 43 43 44 SetConsoleCommand("StoryMode", "exit", &StoryMode::exit); 44 45 RegisterUnloadableClass(StoryMode); 45 46 … … 61 62 this->gtinfo_->sendAnnounceMessage("Marvin isch Chef"); 62 63 } 63 64 void StoryMode::end()64 */ 65 void StoryMode::exit() 65 66 { 66 if (this->missionAccomplished_ && !this->gtinfo_->hasEnded()) 67 { 68 this->gtinfo_->sendAnnounceMessage("StoryMode accomplished!"); 69 70 LevelManager::getInstance().setLastFinishedCampaignMission(this->getFilename()); 67 orxout() << "s funktioniert"<< endl; 68 for (StoryMode* mission : ObjectList<StoryMode>()) 69 { //TODO: make sure that only the desired mission is ended !! This is a dirty HACK, that would end ALL missions! 70 mission->end(); 71 71 } 72 else if (!this->gtinfo_->hasEnded()) 73 this->gtinfo_->sendAnnounceMessage("StoryMode failed!"); 74 75 Gametype::end(); 72 //Gametype::end(); 76 73 } 77 74 /* 78 75 void Mission::setTeams() 79 76 { //Set pawn-colours -
code/branches/StoryModeMap_HS16/src/orxonox/gametypes/StoryMode.h
r11242 r11269 40 40 StoryMode(Context* context); 41 41 virtual ~StoryMode() {} 42 static void exit(); 42 43 43 44
Note: See TracChangeset
for help on using the changeset viewer.