Changeset 1949 for code/branches/objecthierarchy/src/orxonox/gamestates
- Timestamp:
- Oct 19, 2008, 2:24:33 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/gamestates
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/gamestates/GSClient.cc
r1940 r1949 32 32 #include "core/input/InputManager.h" 33 33 #include "core/CommandLine.h" 34 #include "core/Core.h" 34 35 #include "network/Client.h" 35 #include "Settings.h"36 36 37 37 namespace orxonox … … 51 51 void GSClient::enter() 52 52 { 53 Settings::_getInstance().setIsClient(true);53 Core::setIsClient(true); 54 54 55 55 GSLevel::enter(); … … 81 81 GSLevel::leave(); 82 82 83 Settings::_getInstance().setIsClient(false);83 Core::setIsClient(false); 84 84 } 85 85 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSDedicated.cc
r1940 r1949 35 35 #include "core/CommandLine.h" 36 36 #include "core/Loader.h" 37 #include "core/Core.h" 37 38 #include "network/Server.h" 38 39 #include "objects/Tickable.h" 40 #include "Settings.h" 39 41 #include "GraphicsEngine.h" 40 #include "Settings.h"41 42 42 43 namespace orxonox … … 57 58 void GSDedicated::enter() 58 59 { 59 Settings::_getInstance().setHasServer(true);60 Core::setHasServer(true); 60 61 61 62 // create Ogre SceneManager for the level … … 97 98 Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_); 98 99 99 Settings::_getInstance().setHasServer(false);100 Core::setHasServer(false); 100 101 } 101 102 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSGraphics.cc
r1940 r1949 47 47 #include "core/ConfigValueIncludes.h" 48 48 #include "core/CoreIncludes.h" 49 #include "core/Core.h" 49 50 #include "core/input/InputManager.h" 50 51 #include "core/input/KeyBinder.h" … … 101 102 void GSGraphics::enter() 102 103 { 103 Settings::_getInstance().setShowsGraphics(true);104 Core::setShowsGraphics(true); 104 105 105 106 // initialise graphics engine. Doesn't load the render window yet! … … 196 197 delete graphicsEngine_; 197 198 198 Settings::_getInstance().setShowsGraphics(false);199 Core::setShowsGraphics(false); 199 200 } 200 201 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc
r1942 r1949 44 44 #include "objects/Radar.h" 45 45 //#include "tools/ParticleInterface.h" 46 #include "GraphicsEngine.h" 46 47 #include "Settings.h" 47 #include "GraphicsEngine.h"48 48 49 49 namespace orxonox -
code/branches/objecthierarchy/src/orxonox/gamestates/GSServer.cc
r1940 r1949 33 33 #include "core/input/InputManager.h" 34 34 #include "core/CommandLine.h" 35 #include "core/Core.h" 35 36 #include "network/Server.h" 36 #include "Settings.h"37 37 38 38 namespace orxonox … … 52 52 void GSServer::enter() 53 53 { 54 Settings::_getInstance().setHasServer(true);54 Core::setHasServer(true); 55 55 56 56 GSLevel::enter(); … … 86 86 GSLevel::leave(); 87 87 88 Settings::_getInstance().setHasServer(false);88 Core::setHasServer(false); 89 89 } 90 90 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSStandalone.cc
r1940 r1949 32 32 #include "core/input/InputManager.h" 33 33 #include "core/ConsoleCommand.h" 34 #include " Settings.h"34 #include "core/Core.h" 35 35 36 36 namespace orxonox … … 59 59 InputManager::getInstance().requestEnterState("game"); 60 60 61 Settings::_getInstance().setIsStandalone(true);61 Core::setIsStandalone(true); 62 62 } 63 63 … … 72 72 GSLevel::leave(); 73 73 74 Settings::_getInstance().setIsStandalone(false);74 Core::setIsStandalone(false); 75 75 } 76 76
Note: See TracChangeset
for help on using the changeset viewer.