Changeset 2010 for code/branches/objecthierarchy/src/orxonox/gamestates
- Timestamp:
- Oct 25, 2008, 5:13:35 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/gamestates
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/gamestates/GSDedicated.cc
r2003 r2010 35 35 #include "core/CommandLine.h" 36 36 #include "core/Loader.h" 37 #include "core/XMLFile.h" 37 38 #include "core/Core.h" 38 39 #include "network/Server.h" … … 48 49 , server_(0) 49 50 , sceneManager_(0) 50 , start Level_(0)51 , startFile_(0) 51 52 { 52 53 } … … 74 75 // call the loader 75 76 COUT(0) << "Loading level..." << std::endl; 76 start Level_ = new Level(Settings::getDataPath() + "levels/sample.oxw");77 Loader::open(start Level_);77 startFile_ = new XMLFile(Settings::getDataPath() + "levels/sample.oxw"); 78 Loader::open(startFile_); 78 79 79 80 server_->open(); … … 89 90 // TODO: Remove and destroy console command 90 91 91 Loader::unload(start Level_);92 delete this->start Level_;92 Loader::unload(startFile_); 93 delete this->startFile_; 93 94 94 95 this->server_->close(); -
code/branches/objecthierarchy/src/orxonox/gamestates/GSDedicated.h
r1755 r2010 56 56 network::Server* server_; 57 57 Ogre::SceneManager* sceneManager_; 58 Level* startLevel_;//!< current hard coded default level58 XMLFile* startFile_; //!< current hard coded default level 59 59 }; 60 60 } -
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc
r2006 r2010 36 36 #include "core/input/KeyBinder.h" 37 37 #include "core/Loader.h" 38 #include "core/XMLFile.h" 38 39 #include "core/CommandExecutor.h" 39 40 #include "core/ConsoleCommand.h" … … 56 57 , inputState_(0) 57 58 , radar_(0) 58 , start Level_(0)59 , startFile_(0) 59 60 { 60 61 RegisterObject(GSLevel); … … 154 155 // call the loader 155 156 COUT(0) << "Loading level..." << std::endl; 156 start Level_ = new Level(Settings::getDataPath() + "levels/sample2.oxw");157 Loader::open(start Level_);157 startFile_ = new XMLFile(Settings::getDataPath() + "levels/sample2.oxw"); 158 Loader::open(startFile_); 158 159 } 159 160 160 161 void GSLevel::unloadLevel() 161 162 { 162 Loader::unload(start Level_);163 delete this->start Level_;163 Loader::unload(startFile_); 164 delete this->startFile_; 164 165 } 165 166 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.h
r2006 r2010 68 68 SimpleInputState* inputState_; 69 69 Radar* radar_; //!< represents the Radar (not the HUD part) 70 Level* startLevel_;//!< current hard coded default level70 XMLFile* startFile_; //!< current hard coded default level 71 71 72 72 // config values
Note: See TracChangeset
for help on using the changeset viewer.