Changeset 1662 for code/branches/gui/src/orxonox/gamestates/GSRoot.cc
- Timestamp:
- Aug 19, 2008, 8:12:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r1661 r1662 30 30 #include "GSRoot.h" 31 31 32 #include <cassert>33 32 #include "core/Factory.h" 34 33 #include "core/ConfigFileManager.h" … … 36 35 #include "core/ConsoleCommand.h" 37 36 #include "core/Debug.h" 38 //#include "core/Exception.h"37 #include "core/Exception.h" 39 38 #include "core/TclBind.h" 40 39 #include "core/Core.h" … … 65 64 Factory::createClassHierarchy(); 66 65 67 // TODO: config values68 //setConfigValues();69 70 66 const Settings::CommandLineArgument* dataPath = Settings::getCommandLineArgument("dataPath"); 71 67 assert(dataPath); … … 81 77 TclBind::getInstance().setDataPath(Settings::getDataPath()); 82 78 79 // initialise graphics engine. Doesn't load the render window yet! 83 80 graphicsEngine_ = new GraphicsEngine(); 84 81 graphicsEngine_->setup(); // creates ogre root and other essentials 85 82 83 // console commands 84 FunctorMember<GSRoot>* functor = createFunctor(&GSRoot::loadGame); 85 functor->setObject(this); 86 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(functor, "loadGame")); 86 87 } 87 88 … … 98 99 return true; 99 100 } 101 102 /** 103 @brief 104 Requests a state. 105 */ 106 void GSRoot::loadGame(const std::string& name) 107 { 108 this->requestState(name); 109 } 100 110 }
Note: See TracChangeset
for help on using the changeset viewer.