Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2009, 11:32:39 AM (15 years ago)
Author:
rgrieder
Message:

Applied changes to the real sandbox this time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/src/orxonox/Main.cc

    r5695 r5782  
    4141#include "core/Game.h"
    4242#include "core/LuaState.h"
    43 #include "ToluaBindOrxonox.h"
    4443#include "Main.h"
    45 
    46 SetCommandLineSwitch(console).information("Start in console mode (text IO only)");
    47 // Shortcuts for easy direct loading
    48 SetCommandLineSwitch(server).information("Start in server mode");
    49 SetCommandLineSwitch(client).information("Start in client mode");
    50 SetCommandLineSwitch(dedicated).information("Start in dedicated server mode");
    51 SetCommandLineSwitch(standalone).information("Start in standalone mode");
    52 
    53 DeclareToluaInterface(Orxonox);
    5444
    5545namespace orxonox
     
    6555        game->setStateHierarchy(
    6656        "root"
    67         " graphics"
    68         "  mainMenu"
    69         "  standalone"
    70         "   level"
    71         "  server"
    72         "   level"
    73         "  client"
    74         "   level"
    75         " dedicated"
    76         "  level"
    77         " ioConsole"
    7857        );
    7958
    8059        game->requestState("root");
    81 
    82         // Some development hacks (not really, but in the future, this calls won't make sense anymore)
    83         if (CommandLine::getValue("standalone").getBool())
    84             Game::getInstance().requestStates("graphics, standalone, level");
    85         else if (CommandLine::getValue("server").getBool())
    86             Game::getInstance().requestStates("graphics, server, level");
    87         else if (CommandLine::getValue("client").getBool())
    88             Game::getInstance().requestStates("graphics, client, level");
    89         else if (CommandLine::getValue("dedicated").getBool())
    90             Game::getInstance().requestStates("dedicated, level");
    91         else if (CommandLine::getValue("console").getBool())
    92             Game::getInstance().requestStates("ioConsole");
    93         else
    94             Game::getInstance().requestStates("graphics, mainMenu");
    9560
    9661        game->run();
Note: See TracChangeset for help on using the changeset viewer.