Changeset 2845 for code/branches/gui/src/orxonox
- Timestamp:
- Mar 25, 2009, 5:33:58 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/Main.cc
r2844 r2845 48 48 { 49 49 orxonox::Game orxonox(argc, argv); 50 51 orxonox.setStateHierarchy( 52 "root" 53 " graphics" 54 " mainMenu" 55 " standalone" 56 " level" 57 " server" 58 " level" 59 " client" 60 " level" 61 " dedicated" 62 " level" 63 " ioConsole" 64 ); 65 50 66 orxonox.run(); 51 67 } // orxonox gets destroyed right here! -
code/branches/gui/src/orxonox/gamestates/GSGUI.cc
r2844 r2845 41 41 namespace orxonox 42 42 { 43 AddGameState(GSGUI, " gui");43 AddGameState(GSGUI, "mainMenu"); 44 44 45 45 GSGUI::GSGUI(const std::string& name) -
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r2844 r2845 34 34 #include "core/Clock.h" 35 35 #include "core/Core.h" 36 #include "core/CommandLine.h" 36 37 #include "core/ConsoleCommand.h" 37 38 #include "tools/TimeFactorListener.h" … … 43 44 { 44 45 AddGameState(GSRoot, "root"); 46 SetCommandLineSwitch(startWithConsole); 45 47 46 48 GSRoot::GSRoot(const std::string& name) … … 78 80 CommandExecutor::addConsoleCommandShortcut(this->ccPause_).accessLevel(AccessLevel::Offline); 79 81 } 82 83 // Determine where to start 84 if (CommandLine::getValue("startWithConsole").getBool()) 85 { 86 // Start the game in the console 87 Game::getInstance().requestState("ioConsole"); 88 } 89 else 90 { 91 // Start in GUI main menu 92 Game::getInstance().requestState("graphics"); 93 Game::getInstance().requestState("mainMenu"); 94 } 95 80 96 } 81 97
Note: See TracChangeset
for help on using the changeset viewer.