Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2008, 1:09:07 AM (17 years ago)
Author:
rgrieder
Message:
  • adjusted Radar to fit in XML loading scheme
  • OverlayGroup should be more or less what I imagine for now (only supports scale method to scale the entire HUD)
  • singletonized HUDNavigation (and HUDRadar of course): These are temporary hacks!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/Orxonox.cc

    r1601 r1604  
    9595   * Create a new instance of Orxonox. Avoid doing any actual work here.
    9696   */
    97   Orxonox::Orxonox() :
    98     ogre_(0),
    99     //auMan_(0),
    100     timer_(0),
     97  Orxonox::Orxonox()
     98    : ogre_(0)
     99    , startLevel_(0)
     100    , hud_(0)
     101    //, auMan_(0)
     102    , timer_(0)
    101103    // turn on frame smoothing by setting a value different from 0
    102     frameSmoothingTime_(0.0f),
    103     //orxonoxHUD_(0),
    104     bAbort_(false),
    105     timefactor_(1.0f),
    106     mode_(STANDALONE),
    107     serverIp_(""),
    108     serverPort_(NETWORK_PORT)
     104    , frameSmoothingTime_(0.0f)
     105    //orxonoxHUD_(0)
     106    , bAbort_(false)
     107    , timefactor_(1.0f)
     108    , mode_(STANDALONE)
     109    , serverIp_("")
     110    , serverPort_(NETWORK_PORT)
    109111  {
    110112  }
     
    116118  {
    117119    // keep in mind: the order of deletion is very important!
    118     /*if (this->orxonoxHUD_)
    119       delete this->orxonoxHUD_;*/
     120    Loader::unload(startLevel_);
     121    if (this->startLevel_)
     122      delete this->startLevel_;
     123
     124    Loader::unload(hud_);
     125    if (this->hud_)
     126      delete this->hud_;
     127
    120128    Loader::close();
    121     InputManager::destroy();
    122129    //if (this->auMan_)
    123130    //  delete this->auMan_;
     
    125132    if (this->timer_)
    126133      delete this->timer_;
     134    InputManager::destroy();
    127135    GraphicsEngine::getSingleton().destroy();
    128136
     
    335343    COUT(3) << "Orxonox: Loading HUD" << std::endl;
    336344
    337     Level* hud = new Level(Settings::getDataPath() + "overlay/hud.oxo");
    338     Loader::load(hud);
     345    hud_ = new Level(Settings::getDataPath() + "overlay/hud.oxo");
     346    Loader::load(hud_);
    339347
    340348    return true;
     
    397405  bool Orxonox::loadScene()
    398406  {
    399     Level* startlevel = new Level("levels/sample.oxw");
    400     Loader::open(startlevel);
     407    startLevel_ = new Level("levels/sample.oxw");
     408    Loader::open(startLevel_);
    401409
    402410    return true;
Note: See TracChangeset for help on using the changeset viewer.