Changeset 2006 for code/branches/objecthierarchy/src/orxonox/gamestates
- Timestamp:
- Oct 24, 2008, 2:48:43 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc
r1962 r2006 57 57 , radar_(0) 58 58 , startLevel_(0) 59 , hud_(0)60 59 { 61 60 RegisterObject(GSLevel); … … 83 82 COUT(4) << "Created SceneManager: " << sceneManager_->getName() << std::endl; 84 83 84 this->sceneManager_->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE); 85 85 86 // temporary hack 86 87 GraphicsEngine::getInstance().setLevelSceneManager(this->sceneManager_); … … 88 89 // Start the Radar 89 90 this->radar_ = new Radar(); 90 91 // Load the HUD92 COUT(3) << "Orxonox: Loading HUD" << std::endl;93 hud_ = new Level(Settings::getDataPath() + "overlay/hud.oxo");94 Loader::load(hud_);95 91 96 92 // reset game speed to normal … … 113 109 void GSLevel::leave() 114 110 { 115 Loader::unload(hud_);116 delete this->hud_;117 118 111 // this call will delete every BaseObject! 119 112 // But currently this will call methods of objects that exist no more -
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.h
r1887 r2006 69 69 Radar* radar_; //!< represents the Radar (not the HUD part) 70 70 Level* startLevel_; //!< current hard coded default level 71 Level* hud_; //!< 'level' object fo the HUD72 71 73 72 // config values 74 73 std::string keyDetectorCallbackCode_; 75 74 76 75 private: 77 76 void setConfigValues();
Note: See TracChangeset
for help on using the changeset viewer.