bool checkTimer()
Returns if the timer has finished or not.
Definition: C_Timer.cpp:46
~C_Timer()
Destructs the timer object.
Definition: C_Timer.cpp:8
float timer
The current time in the timer.
Definition: C_Timer.h:51
void upadateTimer(float dt)
Updates the timer using the delta time.
Definition: C_Timer.cpp:12
void resetTimer()
Resets the timer to 0.
Definition: C_Timer.cpp:23
bool finished
A boolean for if the timer has finished.
Definition: C_Timer.h:55
Handles timer functions.
Definition: C_Timer.h:7
void resetTimerLength(float timerLength)
Change the timer length and reset the timer.
Definition: C_Timer.cpp:31
float timerLength
The length of the timer.
Definition: C_Timer.h:53
C_Timer(float timerLength)
Constructs the timer object.
Definition: C_Timer.cpp:3
void setTimerLength(float timerLength)
Changes the timer length.
Definition: C_Timer.cpp:40