summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Game.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-07 23:56:54 +0100
committerAki <please@ignore.pl>2022-03-07 23:57:49 +0100
commitf725e598935860d15099a0310a3aef7197a58e9c (patch)
treeab227ca1318c4a79abdc5ba749724e158869aa46 /Stars45/Game.h
parenta80a4f25fe4f7b235443c87ff840e5e06a41290e (diff)
downloadstarshatter-f725e598935860d15099a0310a3aef7197a58e9c.zip
starshatter-f725e598935860d15099a0310a3aef7197a58e9c.tar.gz
starshatter-f725e598935860d15099a0310a3aef7197a58e9c.tar.bz2
Replaced old integrated clock with new one
The interface remains unchanged for now, but changing to use GetClock or similar method to get clock owned by the Game instance is preferred.
Diffstat (limited to 'Stars45/Game.h')
-rw-r--r--Stars45/Game.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/Stars45/Game.h b/Stars45/Game.h
index 5ce1756..d9054e9 100644
--- a/Stars45/Game.h
+++ b/Stars45/Game.h
@@ -11,6 +11,7 @@
#define Game_h
#include "ApplicationDX9.h"
+#include "Clock.h"
#include "Types.h"
#include "Screen.h"
#include "Video.h"
@@ -75,6 +76,7 @@ public:
void SetGammaLevel(int g);
void SetMaxTexSize(int n);
+ Clock* GetClock();
DWORD RealTime();
DWORD GameTime();
DWORD TimeCompression();
@@ -163,9 +165,7 @@ protected:
RECT bounds_rect; // Saved window bounds for mode switches
RECT client_rect; // Saved client area size for mode switches
-
- double gui_seconds;
- double seconds;
+ Clock clock;
double frame_rate;
int frame_count;
int frame_count0;
@@ -180,9 +180,6 @@ protected:
bool paused;
bool server;
bool show_mouse;
- DWORD real_time;
- DWORD game_time;
- DWORD time_comp;
DWORD frame_number;
double max_frame_length;