1 #ifndef TIME_MANAGER_HPP 2 #define TIME_MANAGER_HPP 17 static unsigned int DeltaTime();
unsigned int lastDelta_
The change in time based on the last update tick.
Definition: TimeManager.hpp:36
TimeManager & operator=(const TimeManager &)=delete
Stop the compiler from generating methods to copy the object.
unsigned int lastTick_
The last update tick for stabilizing the framerate.
Definition: TimeManager.hpp:33
Manages the time and framerate for our game.
Definition: TimeManager.hpp:5
~TimeManager()
Destructs a TimeManager.
Definition: TimeManager.cpp:7
unsigned int TICKS_PER_FRAME
The ticks per frame for stabilizing the framerate.
Definition: TimeManager.hpp:39
static TimeManager & instance()
The singleton instance of the TimeManager.
Definition: TimeManager.cpp:9
void StablizeFramerate()
Stabilizes the framerate of the game by calling SDL_Delay.
Definition: TimeManager.cpp:19
TimeManager()
Constructs a TimeManager.
Definition: TimeManager.cpp:6