Changeset 1604 for code/branches/hud/src/orxonox/Orxonox.cc
- Timestamp:
- Jun 15, 2008, 1:09:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/Orxonox.cc
r1601 r1604 95 95 * Create a new instance of Orxonox. Avoid doing any actual work here. 96 96 */ 97 Orxonox::Orxonox() : 98 ogre_(0), 99 //auMan_(0), 100 timer_(0), 97 Orxonox::Orxonox() 98 : ogre_(0) 99 , startLevel_(0) 100 , hud_(0) 101 //, auMan_(0) 102 , timer_(0) 101 103 // turn on frame smoothing by setting a value different from 0 102 frameSmoothingTime_(0.0f),103 //orxonoxHUD_(0) ,104 bAbort_(false),105 timefactor_(1.0f),106 mode_(STANDALONE),107 serverIp_(""),108 serverPort_(NETWORK_PORT)104 , frameSmoothingTime_(0.0f) 105 //orxonoxHUD_(0) 106 , bAbort_(false) 107 , timefactor_(1.0f) 108 , mode_(STANDALONE) 109 , serverIp_("") 110 , serverPort_(NETWORK_PORT) 109 111 { 110 112 } … … 116 118 { 117 119 // keep in mind: the order of deletion is very important! 118 /*if (this->orxonoxHUD_) 119 delete this->orxonoxHUD_;*/ 120 Loader::unload(startLevel_); 121 if (this->startLevel_) 122 delete this->startLevel_; 123 124 Loader::unload(hud_); 125 if (this->hud_) 126 delete this->hud_; 127 120 128 Loader::close(); 121 InputManager::destroy();122 129 //if (this->auMan_) 123 130 // delete this->auMan_; … … 125 132 if (this->timer_) 126 133 delete this->timer_; 134 InputManager::destroy(); 127 135 GraphicsEngine::getSingleton().destroy(); 128 136 … … 335 343 COUT(3) << "Orxonox: Loading HUD" << std::endl; 336 344 337 Level* hud= new Level(Settings::getDataPath() + "overlay/hud.oxo");338 Loader::load(hud );345 hud_ = new Level(Settings::getDataPath() + "overlay/hud.oxo"); 346 Loader::load(hud_); 339 347 340 348 return true; … … 397 405 bool Orxonox::loadScene() 398 406 { 399 Level* startlevel= new Level("levels/sample.oxw");400 Loader::open(start level);407 startLevel_ = new Level("levels/sample.oxw"); 408 Loader::open(startLevel_); 401 409 402 410 return true;
Note: See TracChangeset
for help on using the changeset viewer.