Changeset 2036 for code/branches/overlay/src/orxonox/gamestates
- Timestamp:
- Oct 28, 2008, 10:55:49 PM (16 years ago)
- Location:
- code/branches/overlay/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/overlay/src/orxonox/gamestates/GSLevel.cc
r1887 r2036 58 58 , startLevel_(0) 59 59 , hud_(0) 60 , stats_(0) 60 61 { 61 62 RegisterObject(GSLevel); … … 93 94 hud_ = new Level(Settings::getDataPath() + "overlay/hud.oxo"); 94 95 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_); 95 101 96 102 // reset game speed to normal … … 115 121 Loader::unload(hud_); 116 122 delete this->hud_; 123 124 Loader::unload(stats_); 125 delete this->stats_; 117 126 118 127 // this call will delete every BaseObject! -
code/branches/overlay/src/orxonox/gamestates/GSLevel.h
r1887 r2036 70 70 Level* startLevel_; //!< current hard coded default level 71 71 Level* hud_; //!< 'level' object fo the HUD 72 Level* stats_; //!< 'level' object fo the stats overlay 72 73 73 74 // config values
Note: See TracChangeset
for help on using the changeset viewer.