Changeset 2996 for code/branches/netp3/src/orxonox
- Timestamp:
- May 20, 2009, 4:13:26 PM (16 years ago)
- Location:
- code/branches/netp3/src/orxonox/gamestates
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp3/src/orxonox/gamestates/GSGraphics.cc
r2928 r2996 57 57 namespace orxonox 58 58 { 59 AddGameState(GSGraphics, "graphics" );60 61 GSGraphics::GSGraphics(const std::string& name )62 : GameState(name )59 AddGameState(GSGraphics, "graphics", false); 60 61 GSGraphics::GSGraphics(const std::string& name, bool countTickTime) 62 : GameState(name, countTickTime) 63 63 , inputManager_(0) 64 64 , console_(0) … … 213 213 uint64_t timeBeforeTick = time.getRealMicroseconds(); 214 214 215 this->inputManager_->update(time); // tick console215 this->inputManager_->update(time); 216 216 this->console_->update(time); 217 this->guiManager_->update(time);218 217 219 218 uint64_t timeAfterTick = time.getRealMicroseconds(); … … 222 221 Game::getInstance().addTickTime(timeAfterTick - timeBeforeTick); 223 222 223 // Process gui events 224 this->guiManager_->update(time); 224 225 // Render 225 226 this->graphicsManager_->update(time); -
code/branches/netp3/src/orxonox/gamestates/GSGraphics.h
r2896 r2996 51 51 { 52 52 public: 53 GSGraphics(const std::string& name );53 GSGraphics(const std::string& name, bool countTickTime); 54 54 ~GSGraphics(); 55 55 void setConfigValues(); -
code/branches/netp3/src/orxonox/gamestates/GSRoot.cc
r2928 r2996 43 43 namespace orxonox 44 44 { 45 AddGameState(GSRoot, "root" );45 AddGameState(GSRoot, "root", false); 46 46 SetCommandLineSwitch(console); 47 47 // Shortcuts for easy direct loading … … 51 51 SetCommandLineSwitch(standalone); 52 52 53 GSRoot::GSRoot(const std::string& name )54 : GameState(name )53 GSRoot::GSRoot(const std::string& name, bool countTickTime) 54 : GameState(name, countTickTime) 55 55 , timeFactor_(1.0f) 56 56 , bPaused_(false) -
code/branches/netp3/src/orxonox/gamestates/GSRoot.h
r2896 r2996 39 39 { 40 40 public: 41 GSRoot(const std::string& name );41 GSRoot(const std::string& name, bool countTickTime); 42 42 ~GSRoot(); 43 43
Note: See TracChangeset
for help on using the changeset viewer.