summaryrefslogtreecommitdiffstats
path: root/src/Clock.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-07 13:09:11 +0200
committeraap <aap@papnet.eu>2019-07-07 13:09:11 +0200
commit53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb (patch)
treefc65a6c40fa719f9d43be9e0e15be79c490135e0 /src/Clock.h
parentfinished CPhysical (diff)
downloadre3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar
re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.gz
re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.bz2
re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.lz
re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.xz
re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.tar.zst
re3-53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb.zip
Diffstat (limited to 'src/Clock.h')
-rw-r--r--src/Clock.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/Clock.h b/src/Clock.h
deleted file mode 100644
index e11b2293..00000000
--- a/src/Clock.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-class CClock
-{
- static uint8 &ms_nGameClockHours;
- static uint8 &ms_nGameClockMinutes;
- static uint16 &ms_nGameClockSeconds;
- static uint8 &ms_Stored_nGameClockHours;
- static uint8 &ms_Stored_nGameClockMinutes;
- static uint16 &ms_Stored_nGameClockSeconds;
- static uint32 &ms_nMillisecondsPerGameMinute;
- static int32 &ms_nLastClockTick;
- static bool &ms_bClockHasBeenStored;
-public:
-
- static void Initialise(uint32 scale);
- static void Update(void);
- static void SetGameClock(uint8 h, uint8 m);
- static int32 GetGameClockMinutesUntil(uint8 h, uint8 m);
- static bool GetIsTimeInRange(uint8 h1, uint8 h2);
- static void StoreClock(void);
- static void RestoreClock(void);
-
- static uint8 GetHours(void) { return ms_nGameClockHours; }
- static uint8 GetMinutes(void) { return ms_nGameClockMinutes; }
- static int16 GetSeconds(void) { return ms_nGameClockSeconds; }
-
-
- static uint8 &GetHoursRef(void) { return ms_nGameClockHours; }
- static uint8 &GetMinutesRef(void) { return ms_nGameClockMinutes; }
-};