- Timestamp:
- Apr 8, 2009, 12:58:47 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
r2907 r2908 30 30 #include "GSStandalone.h" 31 31 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" 32 #include "core/Core.h" 39 33 40 34 namespace orxonox 41 35 { 42 AddGameState(GSStandalone, "standalone"); 43 44 GSStandalone::GSStandalone(const std::string& name) 45 : GameState(name) 36 GSStandalone::GSStandalone() 37 : GameState<GSGraphics>("standalone") 46 38 { 47 39 } … … 51 43 } 52 44 45 void GSStandalone::enter() 46 { 47 Core::setIsStandalone(true); 53 48 54 void GSStandalone::activate() 55 { 56 GameMode::setIsStandalone(true); 49 GSLevel::enter(this->getParent()->getViewport()); 57 50 } 58 51 59 void GSStandalone:: deactivate()52 void GSStandalone::leave() 60 53 { 61 GameMode::setIsStandalone(false); 54 GSLevel::leave(); 55 56 Core::setIsStandalone(false); 62 57 } 63 58 64 void GSStandalone:: update(const Clock& time)59 void GSStandalone::ticked(const Clock& time) 65 60 { 61 GSLevel::ticked(time); 62 this->tickChild(time); 66 63 } 67 64 }
Note: See TracChangeset
for help on using the changeset viewer.