Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2009, 11:59:29 PM (16 years ago)
Author:
rgrieder
Message:

#298: Improved usage dialogue creation and the information itself.

Location:
code/branches/core4/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/orxonox/LevelManager.cc

    r3249 r3255  
    4040namespace orxonox
    4141{
    42     SetCommandLineArgument(level, "").shortcut("l");
     42    SetCommandLineArgument(level, "").shortcut("l").information("Default level file (overrides LevelManager::defaultLevelName_ configValue)");
    4343
    4444    LevelManager* LevelManager::singletonRef_s = 0;
     
    5555        if (!CommandLine::getArgument("level")->hasDefaultValue())
    5656        {
    57             ModifyConfigValue(defaultLevelName_, tset, CommandLine::getValue("mediaPath").getString());
     57            ModifyConfigValue(defaultLevelName_, tset, CommandLine::getValue("level").getString());
    5858        }
    5959    }
  • code/branches/core4/src/orxonox/gamestates/GSClient.cc

    r3243 r3255  
    4040    DeclareGameState(GSClient, "client", false, true);
    4141
    42     SetCommandLineArgument(ip, "127.0.0.1").information("#.#.#.#");
     42    SetCommandLineArgument(ip, "127.0.0.1").information("Sever IP as strin in the form #.#.#.#");
    4343
    4444    GSClient::GSClient(const GameStateConstrParams& params)
  • code/branches/core4/src/orxonox/gamestates/GSRoot.cc

    r3245 r3255  
    4242{
    4343    DeclareGameState(GSRoot, "root", true, false);
    44     SetCommandLineSwitch(console);
     44    SetCommandLineSwitch(console).information("Start in console mode (text IO only)");
    4545    // Shortcuts for easy direct loading
    46     SetCommandLineSwitch(server);
    47     SetCommandLineSwitch(client);
    48     SetCommandLineSwitch(dedicated);
    49     SetCommandLineSwitch(standalone);
     46    SetCommandLineSwitch(server).information("Start in server mode");
     47    SetCommandLineSwitch(client).information("Start in client mode");
     48    SetCommandLineSwitch(dedicated).information("Start in dedicated server mode");
     49    SetCommandLineSwitch(standalone).information("Start in standalone mode");
    5050
    5151    GSRoot::GSRoot(const GameStateConstrParams& params)
  • code/branches/core4/src/orxonox/gamestates/GSServer.cc

    r3243 r3255  
    3939    DeclareGameState(GSServer, "server", false, true);
    4040
    41     SetCommandLineArgument(port, 55556).shortcut("p").information("0-65535");
     41    SetCommandLineArgument(port, 55556).shortcut("p").information("Network communication port to be used 0-65535 (default: 55556)");
    4242
    4343    GSServer::GSServer(const GameStateConstrParams& params)
Note: See TracChangeset for help on using the changeset viewer.