Changeset 6043 for code/branches/console/src/orxonox/gamestates
- Timestamp:
- Nov 9, 2009, 3:52:26 PM (15 years ago)
- Location:
- code/branches/console/src/orxonox/gamestates
- Files:
-
- 6 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/orxonox/gamestates/CMakeLists.txt
r5929 r6043 1 1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 GSClient.cc 3 GSDedicated.cc4 GSDedicatedClient.cc5 3 GSGraphics.cc 6 GSIOConsole.cc7 4 GSLevel.cc 8 5 GSMainMenu.cc -
code/branches/console/src/orxonox/gamestates/GSClient.cc
r5929 r6043 29 29 #include "GSClient.h" 30 30 31 #include "util/ Clock.h"31 #include "util/Debug.h" 32 32 #include "util/Exception.h" 33 33 #include "core/CommandLine.h" … … 38 38 namespace orxonox 39 39 { 40 DeclareGameState(GSClient, "client", false, true);40 DeclareGameState(GSClient, "client", false, false); 41 41 42 42 SetCommandLineArgument(ip, "127.0.0.1").information("Sever IP as string in the form #.#.#.#"); -
code/branches/console/src/orxonox/gamestates/GSMainMenu.cc
r5929 r6043 91 91 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startDedicated), "startDedicated")); 92 92 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startMainMenu), "startMainMenu")); 93 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startIOConsole), "startIOConsole"));94 93 95 94 KeyBinderManager::getInstance().setToDefault(); … … 146 145 Game::getInstance().popState(); 147 146 Game::getInstance().popState(); 148 Game::getInstance().requestStates(" dedicated, level");147 Game::getInstance().requestStates("server, level"); 149 148 } 150 149 void GSMainMenu::startMainMenu() … … 155 154 Game::getInstance().requestStates("mainmenu"); 156 155 } 157 void GSMainMenu::startIOConsole()158 {159 // HACK - HACK160 Game::getInstance().popState();161 Game::getInstance().popState();162 Game::getInstance().requestStates("ioConsole");163 }164 156 } -
code/branches/console/src/orxonox/gamestates/GSRoot.cc
r5929 r6043 90 90 void GSRoot::update(const Clock& time) 91 91 { 92 if (this->getActivity().topState)93 {94 // This state can not 'survive' on its own.95 // Load a user interface therefore96 Game::getInstance().requestState("ioConsole");97 }98 99 92 for (ObjectList<Timer>::iterator it = ObjectList<Timer>::begin(); it; ) 100 93 (it++)->tick(time); -
code/branches/console/src/orxonox/gamestates/GSServer.cc
r5929 r6043 37 37 namespace orxonox 38 38 { 39 DeclareGameState(GSServer, "server", false, true);39 DeclareGameState(GSServer, "server", false, false); 40 40 41 41 SetCommandLineArgument(port, 55556).shortcut("p").information("Network communication port to be used 0-65535 (default: 55556)");
Note: See TracChangeset
for help on using the changeset viewer.