Changeset 5935 for code/branches/pickup/src/orxonox/Main.cc
- Timestamp:
- Oct 13, 2009, 5:05:17 PM (15 years ago)
- Location:
- code/branches/pickup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup
- Property svn:mergeinfo changed
-
code/branches/pickup/src/orxonox/Main.cc
r5781 r5935 31 31 @file 32 32 @brief 33 The main function of Orxonox .33 The main function of Orxonox (but not the entry point of the program!) 34 34 */ 35 35 36 36 #include "OrxonoxPrereqs.h" 37 #include "SpecialConfig.h"38 37 39 #include "util/Exception.h"40 38 #include "core/CommandLine.h" 41 39 #include "core/Game.h" … … 50 48 SetCommandLineSwitch(dedicated).information("Start in dedicated server mode"); 51 49 SetCommandLineSwitch(standalone).information("Start in standalone mode"); 50 SetCommandLineSwitch(dedicatedClient).information("Start in dedicated client mode"); 52 51 53 52 DeclareToluaInterface(Orxonox); … … 57 56 /** 58 57 @brief 59 Main method. Game starts here (except for static initialisations).58 Starting point of orxonox (however not the entry point of the program!) 60 59 */ 61 60 int main(const std::string& strCmdLine) … … 67 66 " graphics" 68 67 " mainMenu" 69 " standalone "68 " standalone,server,client" 70 69 " level" 71 " server" 72 " level" 73 " client" 74 " level" 75 " dedicated" 70 " dedicated,dedicatedClient" 76 71 " level" 77 72 " ioConsole" … … 89 84 else if (CommandLine::getValue("dedicated").getBool()) 90 85 Game::getInstance().requestStates("dedicated, level"); 86 else if (CommandLine::getValue("dedicatedClient").getBool()) 87 Game::getInstance().requestStates("dedicatedClient, level"); 91 88 else if (CommandLine::getValue("console").getBool()) 92 89 Game::getInstance().requestStates("ioConsole");
Note: See TracChangeset
for help on using the changeset viewer.