Changeset 3245 for code/branches/core4/src/orxonox/gamestates
- Timestamp:
- Jun 29, 2009, 1:32:40 PM (16 years ago)
- Location:
- code/branches/core4/src/orxonox/gamestates
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/gamestates/GSLevel.cc
r3243 r3245 71 71 , radar_(0) 72 72 , cameraManager_(0) 73 , levelManager_(0)74 73 { 75 74 RegisterObject(GSLevel); … … 120 119 if (GameMode::isMaster()) 121 120 { 122 // create the global LevelManager123 this->levelManager_ = new LevelManager();124 125 121 this->loadLevel(); 126 122 } … … 202 198 } 203 199 204 if (this->levelManager_)205 {206 delete this->levelManager_;207 this->levelManager_ = 0;208 }209 210 200 if (this->playerManager_) 211 201 { … … 255 245 CommandLine::getValue("level", &levelName); 256 246 if (levelName == "") 257 startFile_s = new XMLFile(Core::getMediaPathString() + "levels" + '/' + Game::getInstance().getLevel());247 startFile_s = new XMLFile(Core::getMediaPathString() + "levels" + '/' + LevelManager::getInstance().getStartLevel()); 258 248 else 259 249 startFile_s = new XMLFile(Core::getMediaPathString() + "levels" + '/' + levelName); -
code/branches/core4/src/orxonox/gamestates/GSLevel.h
r3243 r3245 68 68 Radar* radar_; //!< represents the Radar (not the HUD part) 69 69 CameraManager* cameraManager_; //!< camera manager for this level 70 LevelManager* levelManager_; //!< global level manager71 70 PlayerManager* playerManager_; //!< player manager for this level 72 71 QuestManager* questManager_; -
code/branches/core4/src/orxonox/gamestates/GSMainMenu.cc
r3243 r3245 67 67 68 68 // show main menu 69 GUIManager::getInstance().showGUI("mainmenu_ 2");69 GUIManager::getInstance().showGUI("mainmenu_3"); 70 70 GUIManager::getInstance().setCamera(this->camera_); 71 71 GraphicsManager::getInstance().setCamera(this->camera_); -
code/branches/core4/src/orxonox/gamestates/GSRoot.cc
r3243 r3245 37 37 #include "interfaces/TimeFactorListener.h" 38 38 #include "interfaces/Tickable.h" 39 #include "LevelManager.h" 39 40 40 41 namespace orxonox … … 83 84 } 84 85 86 // create the global LevelManager 87 this->levelManager_ = new LevelManager(); 88 85 89 // Load level directly? 86 90 bool loadLevel = false; … … 129 133 } 130 134 */ 135 136 delete this->levelManager_; 131 137 } 132 138 -
code/branches/core4/src/orxonox/gamestates/GSRoot.h
r3243 r3245 52 52 53 53 private: 54 float timeFactor_; //!< A factor that sets the gamespeed. 1 is normal.54 float timeFactor_; //!< A factor that sets the gamespeed. 1 is normal. 55 55 bool bPaused_; 56 56 float timeFactorPauseBackup_; 57 58 LevelManager* levelManager_; //!< global level manager 57 59 58 60 // console commands
Note: See TracChangeset
for help on using the changeset viewer.