Changeset 7978 for code/branches/usability/src/orxonox/gamestates
- Timestamp:
- Feb 27, 2011, 3:11:42 AM (14 years ago)
- Location:
- code/branches/usability/src/orxonox/gamestates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/orxonox/gamestates/GSLevel.cc
r7879 r7978 55 55 56 56 SetConsoleCommand(__CC_startMainMenu_name, &GSLevel::startMainMenu).deactivate(); 57 SetConsoleCommand(__CC_changeGame_name, &GSLevel::changeGame).defaultValues( BLANKSTRING).deactivate();57 SetConsoleCommand(__CC_changeGame_name, &GSLevel::changeGame).defaultValues("").deactivate(); 58 58 59 59 GSLevel::GSLevel(const GameStateInfo& info) … … 202 202 /*static*/ void GSLevel::changeGame(const std::string& level) 203 203 { 204 if(level != BLANKSTRING)204 if(level != "") 205 205 LevelManager::getInstance().setDefaultLevel(level); 206 206 -
code/branches/usability/src/orxonox/gamestates/GSMainMenu.cc
r7966 r7978 57 57 static const std::string __CC_setMainMenuSoundPath_name = "setMMSoundPath"; 58 58 59 SetConsoleCommand(__CC_startStandalone_name, &GSMainMenu::startStandalone).defaultValues( BLANKSTRING).deactivate();60 SetConsoleCommand(__CC_startServer_name, &GSMainMenu::startServer ).defaultValues( BLANKSTRING).deactivate();61 SetConsoleCommand(__CC_startClient_name, &GSMainMenu::startClient ).defaultValues( BLANKSTRING).deactivate();62 SetConsoleCommand(__CC_startDedicated_name, &GSMainMenu::startDedicated ).defaultValues( BLANKSTRING).deactivate();59 SetConsoleCommand(__CC_startStandalone_name, &GSMainMenu::startStandalone).defaultValues("").deactivate(); 60 SetConsoleCommand(__CC_startServer_name, &GSMainMenu::startServer ).defaultValues("").deactivate(); 61 SetConsoleCommand(__CC_startClient_name, &GSMainMenu::startClient ).defaultValues("").deactivate(); 62 SetConsoleCommand(__CC_startDedicated_name, &GSMainMenu::startDedicated ).defaultValues("").deactivate(); 63 63 SetConsoleCommand(__CC_setMainMenuSoundPath_name, &GSMainMenu::setMainMenuSoundPath).hide(); 64 64 … … 176 176 void GSMainMenu::startStandalone(const std::string& level) 177 177 { 178 if(level != BLANKSTRING)178 if(level != "") 179 179 LevelManager::getInstance().setDefaultLevel(level); 180 180 … … 192 192 void GSMainMenu::startServer(const std::string& level) 193 193 { 194 if(level != BLANKSTRING)194 if(level != "") 195 195 LevelManager::getInstance().setDefaultLevel(level); 196 196 … … 208 208 void GSMainMenu::startClient(const std::string& destination) 209 209 { 210 if(destination != BLANKSTRING)210 if(destination != "") 211 211 Client::getInstance()->setDestination(destination, NETWORK_PORT); 212 212 … … 224 224 void GSMainMenu::startDedicated(const std::string& level) 225 225 { 226 if(level != BLANKSTRING)226 if(level != "") 227 227 LevelManager::getInstance().setDefaultLevel(level); 228 228 -
code/branches/usability/src/orxonox/gamestates/GSMainMenu.h
r7876 r7978 53 53 void setMainMenuSoundPath(const std::string& path); 54 54 55 static void startStandalone(const std::string& level = BLANKSTRING); //!< Start a level in standalone mode.56 static void startServer(const std::string& level = BLANKSTRING); //!< Start a level in server mode.57 static void startClient(const std::string& destination = BLANKSTRING); //!< Connect to a game as client.58 static void startDedicated(const std::string& level = BLANKSTRING); //!< Start a level in dedicated mode.55 static void startStandalone(const std::string& level = ""); //!< Start a level in standalone mode. 56 static void startServer(const std::string& level = ""); //!< Start a level in server mode. 57 static void startClient(const std::string& destination = ""); //!< Connect to a game as client. 58 static void startDedicated(const std::string& level = ""); //!< Start a level in dedicated mode. 59 59 static void startIOConsole(); 60 60
Note: See TracChangeset
for help on using the changeset viewer.