Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Added minimal test files for a statistics overlay.

File:
1 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!
Note: See TracChangeset for help on using the changeset viewer.