Changeset 2800 for code/branches/gui/src/orxonox/gamestates
- Timestamp:
- Mar 19, 2009, 10:34:54 AM (16 years ago)
- Location:
- code/branches/gui/src/orxonox/gamestates
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSClient.cc
r2171 r2800 31 31 32 32 #include "core/input/InputManager.h" 33 #include "core/Clock.h" 33 34 #include "core/CommandLine.h" 34 35 #include "core/Core.h" … … 60 61 GSLevel::enter(this->getParent()->getViewport()); 61 62 62 client_->tick(0); 63 // TODO: Get Clock from Game or GameStateManager, but with 0 delta time 64 client_->update(Clock()); 63 65 } 64 66 … … 78 80 { 79 81 GSLevel::ticked(time); 80 client_-> tick(time.getDeltaTime());82 client_->update(time); 81 83 82 84 this->tickChild(time); -
code/branches/gui/src/orxonox/gamestates/GSDedicated.cc
r2662 r2800 30 30 #include "GSDedicated.h" 31 31 32 #include "core/Clock.h" 32 33 #include "core/CommandLine.h" 33 34 #include "core/Core.h" … … 83 84 timeSinceLastUpdate_ -= static_cast<unsigned int>(timeSinceLastUpdate_ / NETWORK_PERIOD) * NETWORK_PERIOD; 84 85 GSLevel::ticked(time); 85 server_-> tick(time.getDeltaTime());86 server_->update(time); 86 87 this->tickChild(time); 87 88 } -
code/branches/gui/src/orxonox/gamestates/GSGUI.cc
r2790 r2800 31 31 32 32 #include <OgreViewport.h> 33 #include "core/Clock.h" 33 34 #include "core/input/InputManager.h" 34 35 #include "core/input/SimpleInputState.h" … … 64 65 { 65 66 // tick CEGUI 66 guiManager_-> tick(time.getDeltaTime());67 guiManager_->update(time); 67 68 68 69 this->tickChild(time); -
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r2759 r2800 233 233 float dt = time.getDeltaTime(); 234 234 235 this->inputManager_-> tick(dt);235 this->inputManager_->update(time); 236 236 // tick console 237 this->console_-> tick(dt);237 this->console_->update(time); 238 238 this->tickChild(time); 239 239 -
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r2799 r2800 134 134 uint64_t timeBeforeTick = time.getRealMicroseconds(); 135 135 136 Core::getInstance(). tick(time);136 Core::getInstance().update(time); 137 137 138 138 for (ObjectList<TimerBase>::iterator it = ObjectList<TimerBase>::begin(); it; ++it) -
code/branches/gui/src/orxonox/gamestates/GSServer.cc
r2171 r2800 73 73 { 74 74 GSLevel::ticked(time); 75 server_-> tick(time.getDeltaTime());75 server_->update(time); 76 76 this->tickChild(time); 77 77 } -
code/branches/gui/src/orxonox/gamestates/GSStandalone.cc
r2790 r2800 86 86 } 87 87 // tick CEGUI 88 guiManager_-> tick(time.getDeltaTime());88 guiManager_->update(time); 89 89 90 90 GSLevel::ticked(time);
Note: See TracChangeset
for help on using the changeset viewer.