Changeset 1696 for code/branches/gui/src/orxonox/gamestates
- Timestamp:
- Sep 3, 2008, 8:45:12 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox/gamestates
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSDedicated.cc
r1694 r1696 55 55 void GSDedicated::enter() 56 56 { 57 Settings::_getInstance().bHasServer_ = true; 58 57 59 // create Ogre SceneManager for the level 58 60 this->sceneManager_ = Ogre::Root::getSingleton().createSceneManager(Ogre::ST_GENERIC, "LevelSceneManager"); … … 92 94 93 95 Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_); 96 97 Settings::_getInstance().bHasServer_ = false; 94 98 } 95 99 -
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r1689 r1696 83 83 void GSGraphics::enter() 84 84 { 85 Settings::_getInstance().bShowsGraphics_ = true; 86 85 87 setConfigValues(); 86 88 … … 139 141 //this->ogreRoot_->shutdown 140 142 // TODO: destroy render window 143 144 Settings::_getInstance().bShowsGraphics_ = false; 141 145 } 142 146 -
code/branches/gui/src/orxonox/gamestates/GSLevel.cc
r1694 r1696 38 38 #include "objects/Backlight.h" 39 39 #include "objects/Tickable.h" 40 #include "tools/Timer.h" 40 41 #include "tools/ParticleInterface.h" 41 42 #include "Settings.h" … … 115 116 for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it) 116 117 it->tick(time.getDeltaTime() * this->timeFactor_); 118 119 for (Iterator<TimerBase> it = ObjectList<TimerBase>::start(); it; ++it) 120 it->tick(time); 117 121 } 118 122 -
code/branches/gui/src/orxonox/gamestates/GSServer.cc
r1674 r1696 34 34 #include "core/CommandLine.h" 35 35 #include "network/Server.h" 36 #include "Settings.h" 36 37 37 38 namespace orxonox … … 51 52 void GSServer::enter() 52 53 { 54 Settings::_getInstance().bHasServer_ = true; 55 53 56 GSLevel::enter(); 54 57 … … 81 84 82 85 GSLevel::leave(); 86 87 Settings::_getInstance().bHasServer_ = false; 83 88 } 84 89
Note: See TracChangeset
for help on using the changeset viewer.