Changeset 6021 for code/trunk/src/orxonox/gamestates
- Timestamp:
- Nov 4, 2009, 12:28:59 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/gamestates
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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.