Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 28, 2008, 10:55:49 PM (16 years ago)
Author:
rgrieder
Message:

Added minimal test files for a statistics overlay.

Location:
code/branches/overlay/src/orxonox/gamestates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/overlay/src/orxonox/gamestates/GSLevel.cc

    r1887 r2036  
    5858        , startLevel_(0)
    5959        , hud_(0)
     60        , stats_(0)
    6061    {
    6162        RegisterObject(GSLevel);
     
    9394        hud_ = new Level(Settings::getDataPath() + "overlay/hud.oxo");
    9495        Loader::load(hud_);
     96
     97        // Load statistics
     98        COUT(3) << "Orxonox: Loading statistics overlay" << std::endl;
     99        stats_ = new Level(Settings::getDataPath() + "overlay/stats.oxo");
     100        Loader::load(stats_);
    95101
    96102        // reset game speed to normal
     
    115121        Loader::unload(hud_);
    116122        delete this->hud_;
     123
     124        Loader::unload(stats_);
     125        delete this->stats_;
    117126
    118127        // this call will delete every BaseObject!
  • code/branches/overlay/src/orxonox/gamestates/GSLevel.h

    r1887 r2036  
    7070        Level*                startLevel_;       //!< current hard coded default level
    7171        Level*                hud_;              //!< 'level' object fo the HUD
     72        Level*                stats_;            //!< 'level' object fo the stats overlay
    7273
    7374        // config values
Note: See TracChangeset for help on using the changeset viewer.