Changeset 3355 for code/branches/resource/src/orxonox
- Timestamp:
- Jul 26, 2009, 2:15:08 PM (15 years ago)
- Location:
- code/branches/resource/src/orxonox/gamestates
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/orxonox/gamestates/GSClient.cc
r3280 r3355 42 42 SetCommandLineArgument(ip, "127.0.0.1").information("Sever IP as strin in the form #.#.#.#"); 43 43 44 GSClient::GSClient(const GameState ConstrParams& params)45 : GameState( params)44 GSClient::GSClient(const GameStateInfo& info) 45 : GameState(info) 46 46 , client_(0) 47 47 { -
code/branches/resource/src/orxonox/gamestates/GSClient.h
r3280 r3355 40 40 { 41 41 public: 42 GSClient(const GameState ConstrParams& params);42 GSClient(const GameStateInfo& info); 43 43 ~GSClient(); 44 44 -
code/branches/resource/src/orxonox/gamestates/GSDedicated.cc
r3304 r3355 55 55 termios* GSDedicated::originalTerminalSettings_; 56 56 57 GSDedicated::GSDedicated(const GameState ConstrParams& params)58 : GameState( params)57 GSDedicated::GSDedicated(const GameStateInfo& info) 58 : GameState(info) 59 59 , server_(0) 60 60 , closeThread_(false) -
code/branches/resource/src/orxonox/gamestates/GSDedicated.h
r3304 r3355 48 48 { 49 49 public: 50 GSDedicated(const GameState ConstrParams& params);50 GSDedicated(const GameStateInfo& info); 51 51 ~GSDedicated(); 52 52 -
code/branches/resource/src/orxonox/gamestates/GSGraphics.cc
r3349 r3355 57 57 DeclareGameState(GSGraphics, "graphics", false, true); 58 58 59 GSGraphics::GSGraphics(const GameState ConstrParams& params)60 : GameState( params)59 GSGraphics::GSGraphics(const GameStateInfo& info) 60 : GameState(info) 61 61 , console_(0) 62 62 , soundManager_(0) … … 88 88 void GSGraphics::activate() 89 89 { 90 // Load OGRE, CEGUI and OIS91 Core::getInstance().loadGraphics();92 93 90 // load debug overlay 94 91 COUT(3) << "Loading Debug Overlay..." << std::endl; … … 147 144 // HACK: (destroys a resource smart pointer) 148 145 Map::hackDestroyMap(); 149 150 // Unload OGRE, CEGUI and OIS151 Core::getInstance().loadGraphics();152 146 } 153 147 -
code/branches/resource/src/orxonox/gamestates/GSGraphics.h
r3349 r3355 50 50 { 51 51 public: 52 GSGraphics(const GameState ConstrParams& params);52 GSGraphics(const GameStateInfo& info); 53 53 ~GSGraphics(); 54 54 -
code/branches/resource/src/orxonox/gamestates/GSIOConsole.cc
r3280 r3355 38 38 DeclareGameState(GSIOConsole, "ioConsole", false, false); 39 39 40 GSIOConsole::GSIOConsole(const GameState ConstrParams& params)41 : GameState( params)40 GSIOConsole::GSIOConsole(const GameStateInfo& info) 41 : GameState(info) 42 42 { 43 43 } -
code/branches/resource/src/orxonox/gamestates/GSIOConsole.h
r3280 r3355 38 38 { 39 39 public: 40 GSIOConsole(const GameState ConstrParams& params);40 GSIOConsole(const GameStateInfo& info); 41 41 ~GSIOConsole(); 42 42 -
code/branches/resource/src/orxonox/gamestates/GSLevel.cc
r3346 r3355 60 60 XMLFile* GSLevel::startFile_s = NULL; 61 61 62 GSLevel::GSLevel(const GameState ConstrParams& params)63 : GameState( params)62 GSLevel::GSLevel(const GameStateInfo& info) 63 : GameState(info) 64 64 , keyBinder_(0) 65 65 , gameInputState_(0) -
code/branches/resource/src/orxonox/gamestates/GSLevel.h
r3327 r3355 41 41 { 42 42 public: 43 GSLevel(const GameState ConstrParams& params);43 GSLevel(const GameStateInfo& info); 44 44 ~GSLevel(); 45 45 void setConfigValues(); -
code/branches/resource/src/orxonox/gamestates/GSMainMenu.cc
r3346 r3355 45 45 DeclareGameState(GSMainMenu, "mainMenu", false, true); 46 46 47 GSMainMenu::GSMainMenu(const GameState ConstrParams& params)48 : GameState( params)47 GSMainMenu::GSMainMenu(const GameStateInfo& info) 48 : GameState(info) 49 49 , inputState_(0) 50 50 { -
code/branches/resource/src/orxonox/gamestates/GSMainMenu.h
r3327 r3355 40 40 { 41 41 public: 42 GSMainMenu(const GameState ConstrParams& params);42 GSMainMenu(const GameStateInfo& info); 43 43 ~GSMainMenu(); 44 44 -
code/branches/resource/src/orxonox/gamestates/GSRoot.cc
r3349 r3355 53 53 SetCommandLineSwitch(standalone).information("Start in standalone mode"); 54 54 55 GSRoot::GSRoot(const GameState ConstrParams& params)56 : GameState( params)55 GSRoot::GSRoot(const GameStateInfo& info) 56 : GameState(info) 57 57 , timeFactor_(1.0f) 58 58 , bPaused_(false) … … 174 174 @brief 175 175 Changes the speed of Orxonox 176 @remark 177 This function is a hack when placed here! 178 Timefactor should be related to the scene (level or so), not the game 176 179 */ 177 180 void GSRoot::setTimeFactor(float factor) -
code/branches/resource/src/orxonox/gamestates/GSRoot.h
r3280 r3355 38 38 { 39 39 public: 40 GSRoot(const GameState ConstrParams& params);40 GSRoot(const GameStateInfo& info); 41 41 ~GSRoot(); 42 42 -
code/branches/resource/src/orxonox/gamestates/GSServer.cc
r3280 r3355 41 41 SetCommandLineArgument(port, 55556).shortcut("p").information("Network communication port to be used 0-65535 (default: 55556)"); 42 42 43 GSServer::GSServer(const GameState ConstrParams& params)44 : GameState( params)43 GSServer::GSServer(const GameStateInfo& info) 44 : GameState(info) 45 45 , server_(0) 46 46 { -
code/branches/resource/src/orxonox/gamestates/GSServer.h
r3280 r3355 40 40 { 41 41 public: 42 GSServer(const GameState ConstrParams& params);42 GSServer(const GameStateInfo& info); 43 43 ~GSServer(); 44 44 -
code/branches/resource/src/orxonox/gamestates/GSStandalone.cc
r3280 r3355 36 36 DeclareGameState(GSStandalone, "standalone", false, true); 37 37 38 GSStandalone::GSStandalone(const GameState ConstrParams& params)39 : GameState( params)38 GSStandalone::GSStandalone(const GameStateInfo& info) 39 : GameState(info) 40 40 { 41 41 } -
code/branches/resource/src/orxonox/gamestates/GSStandalone.h
r3280 r3355 38 38 { 39 39 public: 40 GSStandalone(const GameState ConstrParams& params);40 GSStandalone(const GameStateInfo& info); 41 41 ~GSStandalone(); 42 42
Note: See TracChangeset
for help on using the changeset viewer.