Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2009, 12:28:59 PM (15 years ago)
Author:
rgrieder
Message:

Renamed CommandLine to CommandLineParse to avoid confusions with the class name.

Location:
code/trunk/src/orxonox/gamestates
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSClient.cc

    r5929 r6021  
    3131#include "util/Clock.h"
    3232#include "util/Exception.h"
    33 #include "core/CommandLine.h"
     33#include "core/CommandLineParser.h"
    3434#include "core/Game.h"
    3535#include "core/GameMode.h"
     
    5656        GameMode::setIsClient(true);
    5757
    58         this->client_ = new Client(CommandLine::getValue("ip").getString(), CommandLine::getValue("port"));
     58        this->client_ = new Client(CommandLineParser::getValue("ip").getString(), CommandLineParser::getValue("port"));
    5959
    6060        if(!client_->establishConnection())
  • code/trunk/src/orxonox/gamestates/GSDedicated.cc

    r5929 r6021  
    3636#include "util/Debug.h"
    3737#include "util/Sleep.h"
    38 #include "core/CommandLine.h"
     38#include "core/CommandLineParse.h"
    3939#include "core/CommandExecutor.h"
    4040#include "core/Game.h"
     
    8181#endif
    8282
    83         this->server_ = new Server(CommandLine::getValue("port"));
     83        this->server_ = new Server(CommandLineParser::getValue("port"));
    8484        COUT(0) << "Loading scene in server mode" << std::endl;
    8585
     
    9191        this->server_->close();
    9292        delete this->server_;
    93        
     93
    9494        closeThread_ = true;
    9595#ifdef ORXONOX_PLATFORM_UNIX
     
    138138                        escapeChar = 2;
    139139                        continue;
    140                     }
     140}
    141141                    else if ( escapeChar == 2 )
    142142                    {
  • code/trunk/src/orxonox/gamestates/GSDedicatedClient.cc

    r5929 r6021  
    3737#include "util/Exception.h"
    3838#include "util/Sleep.h"
    39 #include "core/CommandLine.h"
     39#include "core/CommandLineParser.h"
    4040#include "core/CommandExecutor.h"
    4141#include "core/Game.h"
     
    8080#endif
    8181
    82         this->client_ = new Client(CommandLine::getValue("ip").getString(), CommandLine::getValue("port"));
     82        this->client_ = new Client(CommandLineParser::getValue("ip").getString(), CommandLine::getValue("port"));
    8383        COUT(0) << "Loading scene in client mode" << std::endl;
    8484
     
    9393    void GSDedicatedClient::deactivate()
    9494    {
    95         if( this->client_ )
     95        if (this->client_)
    9696        {
    9797            this->client_->closeConnection();
    9898            delete this->client_;
    9999        }
    100        
     100
    101101        closeThread_ = true;
    102102#ifdef ORXONOX_PLATFORM_UNIX
     
    143143                        escapeChar = 2;
    144144                        continue;
    145                     }
     145}
    146146                    else if ( escapeChar == 2 )
    147147                    {
  • code/trunk/src/orxonox/gamestates/GSServer.cc

    r5929 r6021  
    3030
    3131#include "util/Debug.h"
    32 #include "core/CommandLine.h"
     32#include "core/CommandLineParser.h"
    3333#include "core/Game.h"
    3434#include "core/GameMode.h"
     
    5555        GameMode::setHasServer(true);
    5656
    57         this->server_ = new Server(CommandLine::getValue("port"));
     57        this->server_ = new Server(CommandLineParser::getValue("port"));
    5858        COUT(0) << "Loading scene in server mode" << std::endl;
    5959
Note: See TracChangeset for help on using the changeset viewer.