Changeset 10479 for code/branches/core7/src/libraries/core/Core.h
- Timestamp:
- May 25, 2015, 7:20:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/Core.h
r10464 r10479 47 47 #include "util/DestructionHelper.h" 48 48 #include "util/Singleton.h" 49 #include " config/Configurable.h"49 #include "CoreConfig.h" 50 50 51 51 namespace orxonox 52 52 { 53 //! Informs about changes in the Development Mode.54 class DevModeListener : virtual public Listable55 {56 public:57 DevModeListener();58 virtual ~DevModeListener() {}59 virtual void devModeChanged(bool value) = 0;60 };61 62 53 /** 63 54 @brief … … 66 57 You should only create this singleton once because it destroys the identifiers! 67 58 */ 68 class _CoreExport Core : public Singleton<Core> , public Configurable59 class _CoreExport Core : public Singleton<Core> 69 60 { 70 61 friend class Singleton<Core>; … … 86 77 void destroy(); 87 78 88 void setConfigValues(); 89 90 //! Returns the configured language. 91 const std::string& getLanguage() 92 { return this->language_; } 93 void resetLanguage(); 94 95 void updateLastLevelTimestamp(); 96 inline long long getLastLevelTimestamp() const 97 { return this->lastLevelTimestamp_; } 98 99 void updateOgreConfigTimestamp(); 100 inline long long getOgreConfigTimestamp() const 101 { return this->ogreConfigTimestamp_; } 102 103 //! Developers bit. If returns false, some options are not available as to not confuse the normal user. 104 inline bool inDevMode(void) const 105 { return this->bDevMode_; } 79 inline CoreConfig* getConfig() const 80 { return this->config_; } 106 81 107 82 private: 108 83 Core(const Core&); //!< Don't use (undefined symbol) 109 110 void devModeChanged();111 void languageChanged();112 void initRandomNumberGenerator();113 84 114 85 void preUpdate(const Clock& time); … … 135 106 GUIManager* guiManager_; //!< Interface to GUI 136 107 Scope<ScopeID::GRAPHICS>* graphicsScope_; 108 bool bGraphicsLoaded_; 137 109 138 bool bGraphicsLoaded_; 139 std::string language_; //!< The language 140 bool bInitRandomNumberGenerator_; //!< If true, srand(time(0)) is called 141 bool bStartIOConsole_; //!< Set to false if you don't want to use the IOConsole 142 long long lastLevelTimestamp_; ///< Timestamp when the last level was started 143 long long ogreConfigTimestamp_; ///< Timestamp wehen the ogre config level was modified 144 bool bDevMode_; //!< Developers bit. If set to false, some options are not available as to not confuse the normal user. 110 /// Helper object that stores the config values 111 CoreConfig* config_; 145 112 146 113 /// Helper object that executes the surrogate destructor destroy()
Note: See TracChangeset
for help on using the changeset viewer.