Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 20, 2008, 10:30:28 PM (16 years ago)
Author:
rgrieder
Message:

Added CommandLine class.
You can now call SetCommandLineArgument like SetConsoleCommand and hereby define a new command line argument. They are passed in main() and then they can be accessed by commandLine::getCommandLineArgument().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSLevel.cc

    r1662 r1663  
    3535#include "core/input/KeyBinder.h"
    3636#include "core/Loader.h"
     37#include "core/CommandLine.h"
    3738#include "overlays/console/InGameConsole.h"
    3839#include "gui/GUIManager.h"
     
    4546namespace orxonox
    4647{
     48    SetCommandLineArgument(port, 55556).setShortcut("p");
     49    SetCommandLineArgument(ip, std::string("127.0.0.0"));
     50
    4751    GSLevel::GSLevel()
    4852        : GameState("level")
Note: See TracChangeset for help on using the changeset viewer.