Changeset 1577 for code/trunk/src/orxonox/Orxonox.cc
- Timestamp:
- Jun 9, 2008, 6:21:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Orxonox.cc
r1567 r1577 70 70 // objects and tools 71 71 #include "hud/HUD.h" 72 #include "console/InGameConsole.h" 72 73 #include "objects/Tickable.h" 73 74 #include "tools/ParticleInterface.h" … … 76 77 #include "Settings.h" 77 78 78 // FIXME: is this really file scope?79 79 // globals for the server or client 80 network::Client *client_g = 0;81 network::Server *server_g = 0;80 static network::Client *client_g = 0; 81 static network::Server *server_g = 0; 82 82 83 83 namespace orxonox … … 121 121 //if (this->auMan_) 122 122 // delete this->auMan_; 123 InGameConsole::getInstance().destroy(); 123 124 if (this->timer_) 124 125 delete this->timer_; … … 263 264 return false; 264 265 266 // TODO: Spread this so that this call only initialises things needed for the Console 267 if (!ogre_->initialiseResources()) 268 return false; 269 270 // Load the InGameConsole 271 InGameConsole::getInstance().initialise(); 272 265 273 // Calls the InputManager which sets up the input devices. 266 274 // The render window width and height are used to set up the mouse movement. … … 269 277 return false; 270 278 271 // TODO: Spread this so that this call only initialises things needed for the GUI272 if (!ogre_->initialiseResources())273 return false;274 275 279 // TOOD: load the GUI here 276 280 // set InputManager to GUI mode … … 315 319 /** 316 320 * Loads everything in the scene except for the actual objects. 317 * This includes HUD, Console..321 * This includes HUD, audio.. 318 322 */ 319 323 bool Orxonox::loadPlayground() … … 331 335 orxonoxHUD_ = &HUD::getSingleton(); 332 336 orxonoxHUD_->initialise(); 337 333 338 return true; 334 339 } … … 339 344 bool Orxonox::serverLoad() 340 345 { 341 COUT( 2) << "Loading level in server mode" << std::endl;346 COUT(0) << "Loading level in server mode" << std::endl; 342 347 343 348 //server_g = new network::Server(serverPort_); … … 357 362 bool Orxonox::clientLoad() 358 363 { 359 COUT( 2) << "Loading level in client mode" << std::endl;\364 COUT(0) << "Loading level in client mode" << std::endl;\ 360 365 361 366 if (serverIp_.compare("") == 0) … … 377 382 bool Orxonox::standaloneLoad() 378 383 { 379 COUT( 2) << "Loading level in standalone mode" << std::endl;384 COUT(0) << "Loading level in standalone mode" << std::endl; 380 385 381 386 if (!loadScene()) … … 500 505 // again, just to be sure ogre works fine 501 506 ogreRoot._fireFrameEnded(evt); 502 //msleep( 200);507 //msleep(500); 503 508 } 504 509
Note: See TracChangeset
for help on using the changeset viewer.