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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/LevelManager.cc

    r5929 r6021  
    3232#include <OgreResourceGroupManager.h>
    3333
    34 #include "core/CommandLine.h"
     34#include "core/CommandLineParser.h"
    3535#include "core/ConfigValueIncludes.h"
    3636#include "core/CoreIncludes.h"
     
    5353
    5454        // check override
    55         if (!CommandLine::getArgument("level")->hasDefaultValue())
     55        if (!CommandLineParser::getArgument("level")->hasDefaultValue())
    5656        {
    57             ModifyConfigValue(defaultLevelName_, tset, CommandLine::getValue("level").getString());
     57            ModifyConfigValue(defaultLevelName_, tset, CommandLineParser::getValue("level").getString());
    5858        }
    5959    }
  • code/trunk/src/orxonox/Main.cc

    r5929 r6021  
    3636#include "OrxonoxPrereqs.h"
    3737
    38 #include "core/CommandLine.h"
     38#include "core/CommandLineParser.h"
    3939#include "core/Game.h"
    4040#include "core/LuaState.h"
     
    7676
    7777        // 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())
    7979            Game::getInstance().requestStates("graphics, standalone, level");
    80         else if (CommandLine::getValue("server").getBool())
     80        else if (CommandLineParser::getValue("server").getBool())
    8181            Game::getInstance().requestStates("graphics, server, level");
    82         else if (CommandLine::getValue("client").getBool())
     82        else if (CommandLineParser::getValue("client").getBool())
    8383            Game::getInstance().requestStates("graphics, client, level");
    84         else if (CommandLine::getValue("dedicated").getBool())
     84        else if (CommandLineParser::getValue("dedicated").getBool())
    8585            Game::getInstance().requestStates("dedicated, level");
    86         else if (CommandLine::getValue("dedicatedClient").getBool())
     86        else if (CommandLineParser::getValue("dedicatedClient").getBool())
    8787            Game::getInstance().requestStates("dedicatedClient, level");
    88         else if (CommandLine::getValue("console").getBool())
     88        else if (CommandLineParser::getValue("console").getBool())
    8989            Game::getInstance().requestStates("ioConsole");
    9090        else
  • 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.