general timer class. We use it for transitions effects and also timed notifications.
More...
#include <Timer.h>
|
void | reset () |
|
float | deltaTime () |
|
void | timerScale (float t) |
|
float | getTimerScale () |
|
void | update () |
| updates the timer (needs to be at the top of the game loop)
|
|
bool | timePassed (int countdownTime, int currentTime) |
| Checks whether some time has elapsed. Incomplete function.
|
|
|
static Timer * | instance () |
| This is a singleton so we don't provide direct access to the timer constructor.
|
|
static void | release () |
|
general timer class. We use it for transitions effects and also timed notifications.
◆ deltaTime()
float Timer::deltaTime |
( |
| ) |
|
- Returns
- the change in time
◆ instance()
static Timer * Timer::instance |
( |
| ) |
|
|
static |
This is a singleton so we don't provide direct access to the timer constructor.
- Returns
◆ timePassed()
bool Timer::timePassed |
( |
int |
countdownTime, |
|
|
int |
currentTime |
|
) |
| |
Checks whether some time has elapsed. Incomplete function.
- Parameters
-
countdownTime | |
currentTime | |
- Returns
The documentation for this class was generated from the following file: