Changeset 3370 for code/trunk/src/orxonox/LevelManager.h
- Timestamp:
- Jul 30, 2009, 2:10:44 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource (added) merged: 3328,3336-3340,3342-3350,3352-3366
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/LevelManager.h
r3304 r3370 35 35 #include <list> 36 36 #include <string> 37 38 #include "util/Singleton.h" 37 39 #include "core/OrxonoxClass.h" 38 40 … … 42 44 class _OrxonoxExport LevelManager 43 45 // tolua_end 44 : public OrxonoxClass46 : public Singleton<LevelManager>, public OrxonoxClass 45 47 { // tolua_export 48 friend class Singleton<LevelManager>; 46 49 public: 47 50 LevelManager(); … … 55 58 56 59 void setDefaultLevel(const std::string& levelName); //tolua_export 57 const std::string& getDefaultLevel(); //tolua_export 60 const std::string& getDefaultLevel() const; //tolua_export 61 void compileAvailableLevelList(); //tolua_export 62 std::string getAvailableLevelListItem(unsigned int index) const; //tolua_export 58 63 59 static LevelManager* getInstancePtr() { return singleton Ref_s; }60 static LevelManager& getInstance() { assert(singletonRef_s); return *singletonRef_s; } // tolua_export64 static LevelManager* getInstancePtr() { return singletonPtr_s; } 65 static LevelManager& getInstance() { return Singleton<LevelManager>::getInstance(); } // tolua_export 61 66 62 67 private: … … 66 71 67 72 std::list<Level*> levels_s; 73 std::vector<std::string> availableLevels_; 68 74 69 75 // config values 70 76 std::string defaultLevelName_; 71 77 72 static LevelManager* singleton Ref_s;78 static LevelManager* singletonPtr_s; 73 79 }; // tolua_export 74 80 } // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.