99 virtual void Init() = 0;
149 return CSystemUtils::GetInstancePointer();
milliseconds
Definition: system.h:70
CSingleton base class for singletons.
TEST_VIRTUAL void DestroyTimeStamp(SystemTimeStamp *stamp)
Destroys a time stamp object.
Definition: system.cpp:152
virtual void GetCurrentTimeStamp(SystemTimeStamp *stamp)=0
Returns a time stamp associated with current time.
virtual void Init()=0
Performs platform-specific initialization.
microseconds
Definition: system.h:72
virtual std::string GetSavegameDirectoryLocation()
Returns the savegame directory location.
Definition: system.cpp:210
SystemDialogType
Type of system dialog.
Definition: system.h:33
Warning message.
Definition: system.h:38
virtual long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after)=0
Returns the exact (in nanosecond units) difference between two timestamps.
Definition: singleton.h:27
Yes/No question.
Definition: system.h:42
TEST_VIRTUAL SystemDialogResult ConsoleSystemDialog(SystemDialogType type, const std::string &title, const std::string &message)
Displays a fallback system dialog using console.
Definition: system.cpp:61
Error message.
Definition: system.h:40
static CSystemUtils * Create()
Creates system utils for specific platform.
Definition: system.cpp:46
virtual long long GetTimeStampExactResolution()=0
Returns the platform's exact (in nanosecond units) expected time stamp resolution.
TEST_VIRTUAL float GetTimeStampResolution(SystemTimeUnit unit=STU_SEC)
Returns the platform's expected time stamp resolution.
Definition: system.cpp:162
Information message.
Definition: system.h:36
virtual std::string GetLangPath()
Returns the translations path.
Definition: system.cpp:200
TEST_VIRTUAL float TimeStampDiff(SystemTimeStamp *before, SystemTimeStamp *after, SystemTimeUnit unit=STU_SEC)
Returns a difference between two timestamps in given time unit.
Definition: system.cpp:178
seconds
Definition: system.h:68
SystemTimeUnit
Time unit.
Definition: system.h:65
SystemDialogResult
Result of system dialog.
Definition: system.h:53
virtual SystemDialogResult SystemDialog(SystemDialogType, const std::string &title, const std::string &message)=0
Displays a system dialog.
virtual std::string GetProfileFileLocation()
Returns the profile (colobot.ini) file location.
Definition: system.cpp:205
Ok/Cancel question.
Definition: system.h:44
Platform-specific utils.
Definition: system.h:89
Definition: system_linux.h:28
TEST_VIRTUAL void CopyTimeStamp(SystemTimeStamp *dst, SystemTimeStamp *src)
Copies the time stamp from src to dst.
Definition: system.cpp:157
virtual std::string GetDataPath()
Returns the data path (containing textures, levels, helpfiles, etc)
Definition: system.cpp:195
CSystemUtils * GetSystemUtils()
Global function to get CSystemUtils instance.
Definition: system.h:147
TEST_VIRTUAL SystemTimeStamp * CreateTimeStamp()
Creates a new time stamp object.
Definition: system.cpp:147