9 #ifndef TurtleBrains_GameTimer_hpp
10 #define TurtleBrains_GameTimer_hpp
12 #include <turtle_brains/core/tb_types.hpp>
53 GameTimer(
const Milliseconds& valueMilliseconds);
125 static float ToSeconds(
const Milliseconds& valueMilliseconds);
162 Milliseconds mMillisecondTimer;
163 static Milliseconds sMillisecondsPerStep;
GameTimer & operator=(const GameTimer &other)
static GameTimer Zero(void)
static Milliseconds GetMillisecondsPerStep(void)
float GetPercentageOf(const GameTimer &timeValue) const
static float GetSecondsPerStep(void)
const Milliseconds & GetRemainingTime(void) const
static GameTimer Infinity(void)
static void SetMillisecondsPerStep(const Milliseconds &millisecondsPerStep)
bool IncrementStep(const GameTimer &maximumValue=Infinity())
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
static float ToSeconds(const Milliseconds &valueMilliseconds)
static Milliseconds ToMilliseconds(const float &valueSeconds)
uint32_t uint32
Unsigned integer with a size of 32 bits. Supports values from 0 to 4294967295, (2^32 - 1)...
Definition: tb_types.hpp:28
const Milliseconds & GetElapsedTime(void) const
tbCore::uint32 Milliseconds
Definition: tb_game_timer.hpp:31
This is the heart of TurtleBrains for game developers to create GameScenes and Entities to interact w...
Definition: tb_game_timer.hpp:25