Changeset 6021 for code/trunk/src/orxonox
- Timestamp:
- Nov 4, 2009, 12:28:59 PM (15 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/LevelManager.cc
r5929 r6021 32 32 #include <OgreResourceGroupManager.h> 33 33 34 #include "core/CommandLine .h"34 #include "core/CommandLineParser.h" 35 35 #include "core/ConfigValueIncludes.h" 36 36 #include "core/CoreIncludes.h" … … 53 53 54 54 // check override 55 if (!CommandLine ::getArgument("level")->hasDefaultValue())55 if (!CommandLineParser::getArgument("level")->hasDefaultValue()) 56 56 { 57 ModifyConfigValue(defaultLevelName_, tset, CommandLine ::getValue("level").getString());57 ModifyConfigValue(defaultLevelName_, tset, CommandLineParser::getValue("level").getString()); 58 58 } 59 59 } -
code/trunk/src/orxonox/Main.cc
r5929 r6021 36 36 #include "OrxonoxPrereqs.h" 37 37 38 #include "core/CommandLine .h"38 #include "core/CommandLineParser.h" 39 39 #include "core/Game.h" 40 40 #include "core/LuaState.h" … … 76 76 77 77 // Some development hacks (not really, but in the future, this calls won't make sense anymore) 78 if (CommandLine ::getValue("standalone").getBool())78 if (CommandLineParser::getValue("standalone").getBool()) 79 79 Game::getInstance().requestStates("graphics, standalone, level"); 80 else if (CommandLine ::getValue("server").getBool())80 else if (CommandLineParser::getValue("server").getBool()) 81 81 Game::getInstance().requestStates("graphics, server, level"); 82 else if (CommandLine ::getValue("client").getBool())82 else if (CommandLineParser::getValue("client").getBool()) 83 83 Game::getInstance().requestStates("graphics, client, level"); 84 else if (CommandLine ::getValue("dedicated").getBool())84 else if (CommandLineParser::getValue("dedicated").getBool()) 85 85 Game::getInstance().requestStates("dedicated, level"); 86 else if (CommandLine ::getValue("dedicatedClient").getBool())86 else if (CommandLineParser::getValue("dedicatedClient").getBool()) 87 87 Game::getInstance().requestStates("dedicatedClient, level"); 88 else if (CommandLine ::getValue("console").getBool())88 else if (CommandLineParser::getValue("console").getBool()) 89 89 Game::getInstance().requestStates("ioConsole"); 90 90 else -
code/trunk/src/orxonox/gamestates/GSClient.cc
r5929 r6021 31 31 #include "util/Clock.h" 32 32 #include "util/Exception.h" 33 #include "core/CommandLine .h"33 #include "core/CommandLineParser.h" 34 34 #include "core/Game.h" 35 35 #include "core/GameMode.h" … … 56 56 GameMode::setIsClient(true); 57 57 58 this->client_ = new Client(CommandLine ::getValue("ip").getString(), CommandLine::getValue("port"));58 this->client_ = new Client(CommandLineParser::getValue("ip").getString(), CommandLineParser::getValue("port")); 59 59 60 60 if(!client_->establishConnection()) -
code/trunk/src/orxonox/gamestates/GSDedicated.cc
r5929 r6021 36 36 #include "util/Debug.h" 37 37 #include "util/Sleep.h" 38 #include "core/CommandLine .h"38 #include "core/CommandLineParse.h" 39 39 #include "core/CommandExecutor.h" 40 40 #include "core/Game.h" … … 81 81 #endif 82 82 83 this->server_ = new Server(CommandLine ::getValue("port"));83 this->server_ = new Server(CommandLineParser::getValue("port")); 84 84 COUT(0) << "Loading scene in server mode" << std::endl; 85 85 … … 91 91 this->server_->close(); 92 92 delete this->server_; 93 93 94 94 closeThread_ = true; 95 95 #ifdef ORXONOX_PLATFORM_UNIX … … 138 138 escapeChar = 2; 139 139 continue; 140 140 } 141 141 else if ( escapeChar == 2 ) 142 142 { -
code/trunk/src/orxonox/gamestates/GSDedicatedClient.cc
r5929 r6021 37 37 #include "util/Exception.h" 38 38 #include "util/Sleep.h" 39 #include "core/CommandLine .h"39 #include "core/CommandLineParser.h" 40 40 #include "core/CommandExecutor.h" 41 41 #include "core/Game.h" … … 80 80 #endif 81 81 82 this->client_ = new Client(CommandLine ::getValue("ip").getString(), CommandLine::getValue("port"));82 this->client_ = new Client(CommandLineParser::getValue("ip").getString(), CommandLine::getValue("port")); 83 83 COUT(0) << "Loading scene in client mode" << std::endl; 84 84 … … 93 93 void GSDedicatedClient::deactivate() 94 94 { 95 if ( this->client_)95 if (this->client_) 96 96 { 97 97 this->client_->closeConnection(); 98 98 delete this->client_; 99 99 } 100 100 101 101 closeThread_ = true; 102 102 #ifdef ORXONOX_PLATFORM_UNIX … … 143 143 escapeChar = 2; 144 144 continue; 145 145 } 146 146 else if ( escapeChar == 2 ) 147 147 { -
code/trunk/src/orxonox/gamestates/GSServer.cc
r5929 r6021 30 30 31 31 #include "util/Debug.h" 32 #include "core/CommandLine .h"32 #include "core/CommandLineParser.h" 33 33 #include "core/Game.h" 34 34 #include "core/GameMode.h" … … 55 55 GameMode::setHasServer(true); 56 56 57 this->server_ = new Server(CommandLine ::getValue("port"));57 this->server_ = new Server(CommandLineParser::getValue("port")); 58 58 COUT(0) << "Loading scene in server mode" << std::endl; 59 59
Note: See TracChangeset
for help on using the changeset viewer.