summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Game.h
diff options
context:
space:
mode:
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;