Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2008, 6:21:04 PM (16 years ago)
Author:
rgrieder
Message:
  • cleaned up InGameConsole a little bit
  • adjusted noise (has a config value noiseSize_)
  • replaced panel cursor with text area cursor
  • initialise()/destroy() concept like in other Singletons
  • therefore console is initialised and destroyed via Orxonox class (earlier message colouring)
  • replace linear console scroll with exponential one (no, it doesn't take infinite time to reach 0 ;))

UPDATE YOUR MEDIA REPOSITORY!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Orxonox.cc

    r1567 r1577  
    7070// objects and tools
    7171#include "hud/HUD.h"
     72#include "console/InGameConsole.h"
    7273#include "objects/Tickable.h"
    7374#include "tools/ParticleInterface.h"
     
    7677#include "Settings.h"
    7778
    78 // FIXME: is this really file scope?
    7979// globals for the server or client
    80 network::Client *client_g = 0;
    81 network::Server *server_g = 0;
     80static network::Client *client_g = 0;
     81static network::Server *server_g = 0;
    8282
    8383namespace orxonox
     
    121121    //if (this->auMan_)
    122122    //  delete this->auMan_;
     123    InGameConsole::getInstance().destroy();
    123124    if (this->timer_)
    124125      delete this->timer_;
     
    263264        return false;
    264265
     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
    265273      // Calls the InputManager which sets up the input devices.
    266274      // The render window width and height are used to set up the mouse movement.
     
    269277        return false;
    270278
    271       // TODO: Spread this so that this call only initialises things needed for the GUI
    272       if (!ogre_->initialiseResources())
    273         return false;
    274 
    275279      // TOOD: load the GUI here
    276280      // set InputManager to GUI mode
     
    315319  /**
    316320   * Loads everything in the scene except for the actual objects.
    317    * This includes HUD, Console..
     321   * This includes HUD, audio..
    318322   */
    319323  bool Orxonox::loadPlayground()
     
    331335    orxonoxHUD_ = &HUD::getSingleton();
    332336    orxonoxHUD_->initialise();
     337
    333338    return true;
    334339  }
     
    339344  bool Orxonox::serverLoad()
    340345  {
    341     COUT(2) << "Loading level in server mode" << std::endl;
     346    COUT(0) << "Loading level in server mode" << std::endl;
    342347
    343348    //server_g = new network::Server(serverPort_);
     
    357362  bool Orxonox::clientLoad()
    358363  {
    359     COUT(2) << "Loading level in client mode" << std::endl;\
     364    COUT(0) << "Loading level in client mode" << std::endl;\
    360365
    361366    if (serverIp_.compare("") == 0)
     
    377382  bool Orxonox::standaloneLoad()
    378383  {
    379     COUT(2) << "Loading level in standalone mode" << std::endl;
     384    COUT(0) << "Loading level in standalone mode" << std::endl;
    380385
    381386    if (!loadScene())
     
    500505      // again, just to be sure ogre works fine
    501506      ogreRoot._fireFrameEnded(evt);
    502       //msleep(200);
     507      //msleep(500);
    503508    }
    504509
Note: See TracChangeset for help on using the changeset viewer.