- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/gamestates/GSStandalone.cc
r2087 r2907 30 30 #include "GSStandalone.h" 31 31 32 #include "core/Core.h" 32 #include <OgreViewport.h> 33 #include <OgreCamera.h> 34 #include "core/Game.h" 35 #include "core/GameMode.h" 36 #include "core/ConsoleCommand.h" 37 #include "gui/GUIManager.h" 38 #include "GraphicsManager.h" 33 39 34 40 namespace orxonox 35 41 { 36 GSStandalone::GSStandalone() 37 : GameState<GSGraphics>("standalone") 42 AddGameState(GSStandalone, "standalone"); 43 44 GSStandalone::GSStandalone(const std::string& name) 45 : GameState(name) 38 46 { 39 47 } … … 43 51 } 44 52 45 void GSStandalone::enter() 53 54 void GSStandalone::activate() 46 55 { 47 Core::setIsStandalone(true); 48 49 GSLevel::enter(this->getParent()->getViewport()); 56 GameMode::setIsStandalone(true); 50 57 } 51 58 52 void GSStandalone:: leave()59 void GSStandalone::deactivate() 53 60 { 54 GSLevel::leave(); 55 56 Core::setIsStandalone(false); 61 GameMode::setIsStandalone(false); 57 62 } 58 63 59 void GSStandalone:: ticked(const Clock& time)64 void GSStandalone::update(const Clock& time) 60 65 { 61 GSLevel::ticked(time);62 this->tickChild(time);63 66 } 64 67 }
Note: See TracChangeset
for help on using the changeset viewer.