- Timestamp:
- Jan 30, 2006, 11:22:25 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r6834 r6862 106 106 { 107 107 PRINTF(4)("Stopping the current Campaign\n"); 108 this->isRunning = false;108 //this->isRunning = false; 109 109 if( this->currentEntity != NULL) 110 110 { 111 this->currentEntity->setNextStoryID(0); 111 112 this->currentEntity->stop(); 112 113 } … … 134 135 this->currentEntity->unloadData(); 135 136 } 136 PRINTF(2)("There is no StoryEnity left to play, quitting\n");137 PRINTF(2)("There is no StoryEnity left to play, returning to Main Menu\n"); 137 138 } 138 139 -
trunk/src/story_entities/simple_game_menu.cc
r6855 r6862 59 59 this->menuLayer.push_back(new MenuLayer()); 60 60 this->menuLayer.push_back(new MenuLayer()); 61 61 62 this->layerIndex = 0; 63 this->menuSelectedIndex = 0; 62 64 63 65 this->loadParams(root); … … 114 116 115 117 GraphicsEngine::getInstance()->displayFPS(false); 118 119 this->layerIndex = 0; 120 this->menuSelectedIndex = 0; 116 121 } 117 122 … … 205 210 206 211 212 ErrorMessage SimpleGameMenu::unloadData() 213 { 214 GameWorld::unloadData(); 215 216 EventHandler::getInstance()->unsubscribe(this, ES_MENU); 217 218 std::vector<ImageEntity*>::iterator it; 219 std::vector<MenuLayer*>::iterator mit; 220 for(mit = this->menuLayer.begin(); mit != this->menuLayer.end(); mit++) 221 { 222 (*mit)->menuList.erase((*mit)->menuList.begin(), (*mit)->menuList.end()); 223 (*mit)->storyList.erase((*mit)->storyList.begin(), (*mit)->storyList.end()); 224 } 225 } 226 207 227 208 228 /** -
trunk/src/story_entities/simple_game_menu.h
r6839 r6862 50 50 virtual ErrorMessage init(); 51 51 virtual ErrorMessage loadData(); 52 virtual ErrorMessage unloadData(); 52 53 53 54 virtual bool start(); -
trunk/src/util/loading/game_loader.cc
r6854 r6862 47 47 this->setClassID(CL_GAME_LOADER, "GameLoader"); 48 48 this->setName("GameLoader"); 49 49 this->bRun = true; 50 50 } 51 51 … … 162 162 { 163 163 if(this->currentCampaign != NULL) 164 { 164 165 this->currentCampaign->start(); 166 } 165 167 } 166 168 -
trunk/src/util/loading/game_loader.h
r6424 r6862 70 70 Uint32 startTime; //!< start time of the campaign 71 71 bool isPaused; //!< if the game is paused 72 bool bRun; //!< true if stop 72 73 73 74 Campaign* currentCampaign; //!< reference to the current campaign playing
Note: See TracChangeset
for help on using the changeset viewer.