Changeset 5695 for code/trunk/src/core/Core.h
- Timestamp:
- Aug 30, 2009, 2:22:00 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource2 (added) merged: 3373-3374,5594,5597,5610-5611,5614,5624,5641,5644-5646,5650-5664,5667-5672,5682-5684,5688-5691,5694
- Property svn:mergeinfo changed
-
code/trunk/src/core/Core.h
r5693 r5695 51 51 { 52 52 class CoreConfiguration; 53 using boost::scoped_ptr;54 53 55 54 /** … … 57 56 The Core class is a singleton used to configure the program basics. 58 57 @details 59 The class provides information about the media, config and log path.58 The class provides information about the data, config and log path. 60 59 It determines those by the use of platform specific functions. 61 60 @remark … … 66 65 typedef Loki::ScopeGuardImpl0<void (*)()> SimpleScopeGuard; 67 66 friend class Singleton<Core>; 67 friend class Game; 68 68 69 69 public: … … 80 80 void setConfigValues(); 81 81 82 bool preUpdate(const Clock& time) throw();83 bool postUpdate(const Clock& time) throw();84 85 void loadGraphics();86 void unloadGraphics();87 88 82 static int getSoftDebugLevel(OutputHandler::OutputDevice device = OutputHandler::LD_All); 89 83 static void setSoftDebugLevel(OutputHandler::OutputDevice device, int level); … … 91 85 static void resetLanguage(); 92 86 93 static void tsetMediaPath(const std::string& path); 94 //! Returns the path to the config files as boost::filesystem::path 95 static const boost::filesystem::path& getMediaPath(); 87 static void tsetExternalDataPath(const std::string& path); 88 //! Returns the path to the data files as boost::filesystem::path 89 static const boost::filesystem::path& getDataPath(); 90 //! Returns the path to the external data files as boost::filesystem::path 91 static const boost::filesystem::path& getExternalDataPath(); 96 92 //! Returns the path to the config files as boost::filesystem::path 97 93 static const boost::filesystem::path& getConfigPath(); … … 101 97 static const boost::filesystem::path& getRootPath(); 102 98 //! Returns the path to the data files as std::string 103 static std::string getMediaPathString(); 99 static std::string getDataPathString(); 100 //! Returns the path to the external data files as std::string 101 static std::string getExternalDataPathString(); 104 102 //! Returns the path to the config files as std::string 105 103 static std::string getConfigPathString(); … … 113 111 private: 114 112 Core(const Core&); //!< Don't use (undefined symbol) 113 114 void preUpdate(const Clock& time); 115 void postUpdate(const Clock& time); 116 117 void loadGraphics(); 118 void unloadGraphics(); 115 119 116 120 void setFixedPaths(); … … 126 130 scoped_ptr<Language> languageInstance_; 127 131 scoped_ptr<CoreConfiguration> configuration_; 128 scoped_ptr<LuaBind> luaBind_;129 132 scoped_ptr<TclBind> tclBind_; 130 133 scoped_ptr<TclThreadManager> tclThreadManager_;
Note: See TracChangeset
for help on using the changeset viewer.