Manages the timing and delta time for the game. More...
#include <TimeManager.h>
Static Public Member Functions | |
static float | GetDeltaTime () |
Retrieves the delta time. | |
static float | GetTime () |
Retrieves the current time. | |
Private Member Functions | |
TimeManager (const TimeManager &)=delete | |
TimeManager & | operator= (const TimeManager &)=delete |
void | privDelete () |
void | privProcessTime () |
float | privGetDeltaTime () |
float | privGetTime () |
Static Private Member Functions | |
static TimeManager & | Instance () |
static void | Delete () |
Deletes the TimeManager instance. | |
static void | ProcessTime () |
Processes the time by updating the current and delta time. | |
Private Attributes | |
float | currentTime |
The current time. | |
float | deltaTime |
The delta time. | |
float | previousTime |
The previous time for calculating delta time. | |
FreezeTime * | frzTime |
Pointer to the FreezeTime object. | |
Static Private Attributes | |
static TimeManager * | ptrInstance = nullptr |
Friends | |
class | TimeManagerAttorney |
Manages the timing and delta time for the game.
The TimeManager class is responsible for managing the timing and delta time for the game. It provides methods to get the current time and delta time, and processes the time each frame. It follows the Singleton design pattern.
|
inlinestatic |
Retrieves the delta time.
|
inlinestatic |
Retrieves the current time.