Changeset 3094 for code/trunk/src/orxonox/gamestates/GSMainMenu.cc
- Timestamp:
- May 27, 2009, 9:42:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSMainMenu.cc
r3060 r3094 73 73 74 74 { 75 FunctorMember<GSMainMenu>* functor = createFunctor(&GSMainMenu::start Game);75 FunctorMember<GSMainMenu>* functor = createFunctor(&GSMainMenu::startStandalone); 76 76 functor->setObject(this); 77 this->ccStartGame_ = createConsoleCommand(functor, "startGame"); 78 CommandExecutor::addConsoleCommandShortcut(this->ccStartGame_); 77 this->ccStartStandalone_ = createConsoleCommand(functor, "startGame"); 78 CommandExecutor::addConsoleCommandShortcut(this->ccStartStandalone_); 79 } 80 { 81 FunctorMember<GSMainMenu>* functor = createFunctor(&GSMainMenu::startServer); 82 functor->setObject(this); 83 this->ccStartServer_ = createConsoleCommand(functor, "startServer"); 84 CommandExecutor::addConsoleCommandShortcut(this->ccStartServer_); 85 } 86 { 87 FunctorMember<GSMainMenu>* functor = createFunctor(&GSMainMenu::startClient); 88 functor->setObject(this); 89 this->ccStartClient_ = createConsoleCommand(functor, "startClient"); 90 CommandExecutor::addConsoleCommandShortcut(this->ccStartClient_); 91 } 92 { 93 FunctorMember<GSMainMenu>* functor = createFunctor(&GSMainMenu::startDedicated); 94 functor->setObject(this); 95 this->ccStartDedicated_ = createConsoleCommand(functor, "startDedicated"); 96 CommandExecutor::addConsoleCommandShortcut(this->ccStartDedicated_); 79 97 } 80 98 … … 110 128 } 111 129 112 void GSMainMenu::start Game()130 void GSMainMenu::startStandalone() 113 131 { 114 132 // HACK - HACK … … 116 134 Game::getInstance().requestStates("standalone, level"); 117 135 } 136 137 void GSMainMenu::startServer() 138 { 139 // HACK - HACK 140 Game::getInstance().popState(); 141 Game::getInstance().requestStates("server, level"); 142 } 143 144 void GSMainMenu::startClient() 145 { 146 // HACK - HACK 147 Game::getInstance().popState(); 148 Game::getInstance().requestStates("client, level"); 149 } 150 151 void GSMainMenu::startDedicated() 152 { 153 // HACK - HACK 154 Game::getInstance().popState(); 155 Game::getInstance().popState(); 156 Game::getInstance().requestStates("dedicated, level"); 157 } 118 158 }
Note: See TracChangeset
for help on using the changeset viewer.