diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-05-29 20:02:58 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-05-29 20:02:58 +0200 |
commit | 197767d1c83f8d940698cd200785e91fbc2ccc98 (patch) | |
tree | c1ee0bb77ae0dbef844cf45eb9d2ffb00b08895f /src/Timer.h | |
parent | Particle, ParticleMgr done (diff) | |
download | re3-197767d1c83f8d940698cd200785e91fbc2ccc98.tar re3-197767d1c83f8d940698cd200785e91fbc2ccc98.tar.gz re3-197767d1c83f8d940698cd200785e91fbc2ccc98.tar.bz2 re3-197767d1c83f8d940698cd200785e91fbc2ccc98.tar.lz re3-197767d1c83f8d940698cd200785e91fbc2ccc98.tar.xz re3-197767d1c83f8d940698cd200785e91fbc2ccc98.tar.zst re3-197767d1c83f8d940698cd200785e91fbc2ccc98.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Timer.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Timer.h b/src/Timer.h index 765cd050..d5e51dfc 100644 --- a/src/Timer.h +++ b/src/Timer.h @@ -2,7 +2,6 @@ class CTimer { -public: // remove when each variable will be encapsulated static uint32 &m_snTimeInMilliseconds; static uint32 &m_snTimeInMillisecondsPauseMode; static uint32 &m_snTimeInMillisecondsNonClipped; @@ -18,4 +17,18 @@ public: static void SetTimeStep(float ts) { ms_fTimeStep = ts; } static uint32 GetFrameCounter(void) { return m_FrameCounter; } static uint32 GetTimeInMilliseconds(void) { return m_snTimeInMilliseconds; } + + static inline Bool GetIsPaused() { return m_UserPause || m_CodePause; } + + static void Initialise(void); + static void Shutdown(void); + static void Update(void); + static void Suspend(void); + static void Resume(void); + static UInt32 GetCyclesPerMillisecond(void); + static UInt32 GetCurrentTimeInCycles(void); + static Bool GetIsSlowMotionActive(void); + static void Stop(void); + static void StartUserPause(void); + static void EndUserPause(void); }; |