creates a timer for use in game
More...
#include <Timer.h>
creates a timer for use in game
Definition at line 18 of file Timer.h.
static bool Timer::createTimer |
( |
int |
id, |
|
|
float |
duration |
|
) |
| |
|
static |
Creates a new timer with a unique id and a duration
- Parameters
-
int | the id |
float | the duration |
- Returns
- bool false is id is not unique
static bool Timer::hasTimerFinished |
( |
int |
id | ) |
|
|
static |
Checks to see if the timer has finished
- Parameters
-
- Returns
- bool if the timer has ended
static int Timer::searchForIDPos |
( |
int |
id | ) |
|
|
staticprivate |
static float Timer::stopTimer |
( |
int |
id | ) |
|
|
static |
Stops the time and returns the time taken
- Parameters
-
- Returns
- float the time taken
static void Timer::update |
( |
float |
dt | ) |
|
|
static |
upadates the time in the timer
- Parameters
-
const float Timer::TIME_INTERVAL |
|
staticprivate |
Stores the Timers.
1- id 2- currentTime 3- duration
Definition at line 66 of file Timer.h.
The documentation for this class was generated from the following file: