9 #ifndef _TurtleBrains_GameTimer_h_
10 #define _TurtleBrains_GameTimer_h_
12 #include "../core/tb_types.h"
48 explicit GameTimer(
const Milliseconds& valueMilliseconds);
116 static float ToSeconds(
const Milliseconds& valueMilliseconds);
148 Milliseconds mMillisecondTimer;
149 static Milliseconds sMillisecondsPerStep;
GameTimer & operator=(const GameTimer &other)
static Milliseconds GetMillisecondsPerStep(void)
float GetPercentageOf(const GameTimer &timeValue) const
static float GetSecondsPerStep(void)
const Milliseconds & GetRemainingTime(void) const
static GameTimer kZero
Definition: tb_game_timer.h:36
static void SetMillisecondsPerStep(const Milliseconds &millisecondsPerStep)
Contains all functions, classes and helpers related to game/application development written by Tim "B...
Definition: tb_application_dialog.h: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.h:27
const Milliseconds & GetElapsedTime(void) const
tbCore::uint32 Milliseconds
Definition: tb_game_timer.h:31
This is the heart of TurtleBrains for game developers to create GameScenes and Entities to interact w...
Definition: tb_game_timer.h:25