Changeset 1940 for code/branches/objecthierarchy/src/orxonox/gamestates
- Timestamp:
- Oct 18, 2008, 10:58:46 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/gamestates
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/gamestates/GSClient.cc
r1907 r1940 51 51 void GSClient::enter() 52 52 { 53 Settings::_getInstance(). bIsClient_ = true;53 Settings::_getInstance().setIsClient(true); 54 54 55 55 GSLevel::enter(); … … 81 81 GSLevel::leave(); 82 82 83 Settings::_getInstance(). bIsClient_ = false;83 Settings::_getInstance().setIsClient(false); 84 84 } 85 85 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSDedicated.cc
r1790 r1940 57 57 void GSDedicated::enter() 58 58 { 59 Settings::_getInstance(). bHasServer_ = true;59 Settings::_getInstance().setHasServer(true); 60 60 61 61 // create Ogre SceneManager for the level … … 97 97 Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_); 98 98 99 Settings::_getInstance(). bHasServer_ = false;99 Settings::_getInstance().setHasServer(false); 100 100 } 101 101 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSGraphics.cc
r1891 r1940 101 101 void GSGraphics::enter() 102 102 { 103 Settings::_getInstance(). bShowsGraphics_ = true;103 Settings::_getInstance().setShowsGraphics(true); 104 104 105 105 // initialise graphics engine. Doesn't load the render window yet! … … 196 196 delete graphicsEngine_; 197 197 198 Settings::_getInstance(). bShowsGraphics_ = false;198 Settings::_getInstance().setShowsGraphics(false); 199 199 } 200 200 … … 221 221 this->console_->tick(dt); 222 222 this->tickChild(time); 223 223 224 224 unsigned long long timeAfterTick = time.getRealMicroseconds(); 225 225 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSServer.cc
r1910 r1940 52 52 void GSServer::enter() 53 53 { 54 Settings::_getInstance(). bHasServer_ = true;54 Settings::_getInstance().setHasServer(true); 55 55 56 56 GSLevel::enter(); … … 85 85 86 86 GSLevel::leave(); 87 88 Settings::_getInstance(). bHasServer_ = false;87 88 Settings::_getInstance().setHasServer(false); 89 89 } 90 90 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSStandalone.cc
r1755 r1940 32 32 #include "core/input/InputManager.h" 33 33 #include "core/ConsoleCommand.h" 34 #include "Settings.h" 34 35 35 36 namespace orxonox … … 57 58 // level is loaded: we can start capturing the input 58 59 InputManager::getInstance().requestEnterState("game"); 60 61 Settings::_getInstance().setIsStandalone(true); 59 62 } 60 63 … … 68 71 69 72 GSLevel::leave(); 73 74 Settings::_getInstance().setIsStandalone(false); 70 75 } 71 76
Note: See TracChangeset
for help on using the changeset viewer.