16 friend class TimeManagerAttorney;
23 static float GetDeltaTime() {
return Instance().privGetDeltaTime(); }
30 static float GetTime() {
return Instance().privGetTime(); }
41 if (ptrInstance ==
nullptr)
69 static void Delete() { Instance().privDelete(); }
77 void privProcessTime();
78 float privGetDeltaTime();
Manages the freezing and single frame stepping of the game time.
Definition FreezeTime.h:17
Manages the timing and delta time for the game.
Definition TimeManager.h:15
static void ProcessTime()
Processes the time by updating the current and delta time.
Definition TimeManager.h:74
static float GetTime()
Retrieves the current time.
Definition TimeManager.h:30
FreezeTime * frzTime
Pointer to the FreezeTime object.
Definition TimeManager.h:64
static void Delete()
Deletes the TimeManager instance.
Definition TimeManager.h:69
static float GetDeltaTime()
Retrieves the delta time.
Definition TimeManager.h:23
float deltaTime
The delta time.
Definition TimeManager.h:54
float previousTime
The previous time for calculating delta time.
Definition TimeManager.h:59
float currentTime
The current time.
Definition TimeManager.h:49