Changeset 2844 for code/branches/gui/src/orxonox/gamestates/GSStandalone.cc
- Timestamp:
- Mar 25, 2009, 5:23:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSStandalone.cc
r2834 r2844 36 36 #include "gui/GUIManager.h" 37 37 #include "GraphicsManager.h" 38 #include "core/Game.h" 38 39 39 40 namespace orxonox 40 41 { 41 GSStandalone::GSStandalone() 42 : GameState("standalone") 42 AddGameState(GSStandalone, "standalone"); 43 44 GSStandalone::GSStandalone(const std::string& name) 45 : GameState(name) 43 46 { 44 47 } … … 49 52 50 53 51 void GSStandalone:: enter()54 void GSStandalone::activate() 52 55 { 53 56 Core::setIsStandalone(true); 54 55 GSLevel::enter();56 57 57 58 guiManager_ = GUIManager::getInstancePtr(); … … 60 61 } 61 62 62 void GSStandalone:: leave()63 void GSStandalone::deactivate() 63 64 { 64 GSLevel::leave();65 66 65 Core::setIsStandalone(false); 67 66 } 68 67 69 void GSStandalone:: ticked(const Clock& time)68 void GSStandalone::update(const Clock& time) 70 69 { 71 70 //Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport(); … … 77 76 // tick CEGUI 78 77 guiManager_->update(time); 79 80 GSLevel::ticked(time);81 this->tickChild(time);82 78 } 83 79 }
Note: See TracChangeset
for help on using the changeset viewer.