Changeset 3243 for code/branches/core4/src/orxonox/gamestates
- Timestamp:
- Jun 28, 2009, 6:22:40 PM (16 years ago)
- Location:
- code/branches/core4/src/orxonox/gamestates
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/gamestates/GSClient.cc
r3196 r3243 38 38 namespace orxonox 39 39 { 40 AddGameState(GSClient, "client");40 DeclareGameState(GSClient, "client", false, true); 41 41 42 42 SetCommandLineArgument(ip, "127.0.0.1").information("#.#.#.#"); 43 43 44 GSClient::GSClient(const std::string& name)45 : GameState( name)44 GSClient::GSClient(const GameStateConstrParams& params) 45 : GameState(params) 46 46 , client_(0) 47 47 { -
code/branches/core4/src/orxonox/gamestates/GSClient.h
r3196 r3243 40 40 { 41 41 public: 42 GSClient(const std::string& name);42 GSClient(const GameStateConstrParams& params); 43 43 ~GSClient(); 44 44 -
code/branches/core4/src/orxonox/gamestates/GSDedicated.cc
r3205 r3243 51 51 const unsigned int MAX_COMMAND_LENGTH = 255; 52 52 53 AddGameState(GSDedicated, "dedicated");53 DeclareGameState(GSDedicated, "dedicated", false, false); 54 54 55 55 termios* GSDedicated::originalTerminalSettings_; 56 56 57 GSDedicated::GSDedicated(const std::string& name)58 : GameState( name)57 GSDedicated::GSDedicated(const GameStateConstrParams& params) 58 : GameState(params) 59 59 , server_(0) 60 60 , timeSinceLastUpdate_(0) -
code/branches/core4/src/orxonox/gamestates/GSDedicated.h
r3198 r3243 48 48 { 49 49 public: 50 GSDedicated(const std::string& name);50 GSDedicated(const GameStateConstrParams& params); 51 51 ~GSDedicated(); 52 52 -
code/branches/core4/src/orxonox/gamestates/GSGraphics.cc
r3238 r3243 57 57 namespace orxonox 58 58 { 59 AddGameState(GSGraphics, "graphics", true);60 61 GSGraphics::GSGraphics(const std::string& name, bool countTickTime)62 : GameState( name, countTickTime)59 DeclareGameState(GSGraphics, "graphics", true, true); 60 61 GSGraphics::GSGraphics(const GameStateConstrParams& params) 62 : GameState(params) 63 63 , inputManager_(0) 64 64 , console_(0) -
code/branches/core4/src/orxonox/gamestates/GSGraphics.h
r3196 r3243 52 52 { 53 53 public: 54 GSGraphics(const std::string& name, bool countTickTime);54 GSGraphics(const GameStateConstrParams& params); 55 55 ~GSGraphics(); 56 56 void setConfigValues(); -
code/branches/core4/src/orxonox/gamestates/GSIOConsole.cc
r3196 r3243 36 36 namespace orxonox 37 37 { 38 AddGameState(GSIOConsole, "ioConsole");38 DeclareGameState(GSIOConsole, "ioConsole", false, false); 39 39 40 GSIOConsole::GSIOConsole(const std::string& name)41 : GameState( name)40 GSIOConsole::GSIOConsole(const GameStateConstrParams& params) 41 : GameState(params) 42 42 { 43 43 } -
code/branches/core4/src/orxonox/gamestates/GSIOConsole.h
r2896 r3243 38 38 { 39 39 public: 40 GSIOConsole(const std::string& name);40 GSIOConsole(const GameStateConstrParams& params); 41 41 ~GSIOConsole(); 42 42 -
code/branches/core4/src/orxonox/gamestates/GSLevel.cc
r3196 r3243 56 56 namespace orxonox 57 57 { 58 AddGameState(GSLevel, "level");58 DeclareGameState(GSLevel, "level", false, true); 59 59 60 60 SetCommandLineArgument(level, "").shortcut("l"); … … 63 63 XMLFile* GSLevel::startFile_s = NULL; 64 64 65 GSLevel::GSLevel(const std::string& name)66 : GameState( name)65 GSLevel::GSLevel(const GameStateConstrParams& params) 66 : GameState(params) 67 67 , keyBinder_(0) 68 68 , gameInputState_(0) -
code/branches/core4/src/orxonox/gamestates/GSLevel.h
r3196 r3243 41 41 { 42 42 public: 43 GSLevel(const std::string& name);43 GSLevel(const GameStateConstrParams& params); 44 44 ~GSLevel(); 45 45 void setConfigValues(); -
code/branches/core4/src/orxonox/gamestates/GSMainMenu.cc
r3196 r3243 43 43 namespace orxonox 44 44 { 45 AddGameState(GSMainMenu, "mainMenu");45 DeclareGameState(GSMainMenu, "mainMenu", false, true); 46 46 47 GSMainMenu::GSMainMenu(const std::string& name)48 : GameState( name)47 GSMainMenu::GSMainMenu(const GameStateConstrParams& params) 48 : GameState(params) 49 49 , inputState_(0) 50 50 { -
code/branches/core4/src/orxonox/gamestates/GSMainMenu.h
r3196 r3243 40 40 { 41 41 public: 42 GSMainMenu(const std::string& name);42 GSMainMenu(const GameStateConstrParams& params); 43 43 ~GSMainMenu(); 44 44 -
code/branches/core4/src/orxonox/gamestates/GSRoot.cc
r3238 r3243 40 40 namespace orxonox 41 41 { 42 AddGameState(GSRoot, "root", true);42 DeclareGameState(GSRoot, "root", true, false); 43 43 SetCommandLineSwitch(console); 44 44 // Shortcuts for easy direct loading … … 48 48 SetCommandLineSwitch(standalone); 49 49 50 GSRoot::GSRoot(const std::string& name, bool countTickTime)51 : GameState( name, countTickTime)50 GSRoot::GSRoot(const GameStateConstrParams& params) 51 : GameState(params) 52 52 , timeFactor_(1.0f) 53 53 , bPaused_(false) -
code/branches/core4/src/orxonox/gamestates/GSRoot.h
r3196 r3243 38 38 { 39 39 public: 40 GSRoot(const std::string& name, bool countTickTime);40 GSRoot(const GameStateConstrParams& params); 41 41 ~GSRoot(); 42 42 -
code/branches/core4/src/orxonox/gamestates/GSServer.cc
r3196 r3243 37 37 namespace orxonox 38 38 { 39 AddGameState(GSServer, "server");39 DeclareGameState(GSServer, "server", false, true); 40 40 41 41 SetCommandLineArgument(port, 55556).shortcut("p").information("0-65535"); 42 42 43 GSServer::GSServer(const std::string& name)44 : GameState( name)43 GSServer::GSServer(const GameStateConstrParams& params) 44 : GameState(params) 45 45 , server_(0) 46 46 { -
code/branches/core4/src/orxonox/gamestates/GSServer.h
r3196 r3243 40 40 { 41 41 public: 42 GSServer(const std::string& name);42 GSServer(const GameStateConstrParams& params); 43 43 ~GSServer(); 44 44 -
code/branches/core4/src/orxonox/gamestates/GSStandalone.cc
r3196 r3243 34 34 namespace orxonox 35 35 { 36 AddGameState(GSStandalone, "standalone");36 DeclareGameState(GSStandalone, "standalone", false, true); 37 37 38 GSStandalone::GSStandalone(const std::string& name)39 : GameState( name)38 GSStandalone::GSStandalone(const GameStateConstrParams& params) 39 : GameState(params) 40 40 { 41 41 } -
code/branches/core4/src/orxonox/gamestates/GSStandalone.h
r2896 r3243 38 38 { 39 39 public: 40 GSStandalone(const std::string& name);40 GSStandalone(const GameStateConstrParams& params); 41 41 ~GSStandalone(); 42 42
Note: See TracChangeset
for help on using the changeset viewer.