From f725e598935860d15099a0310a3aef7197a58e9c Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 7 Mar 2022 23:56:54 +0100 Subject: 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. --- Stars45/Game.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Stars45/Game.h') 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; -- cgit v1.1