Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
C_Timer.h
Go to the documentation of this file.
1 #pragma once
2 
7 class C_Timer
8 {
9 public:
14  C_Timer(float timerLength);
15 
19  ~C_Timer();
20 
25  void upadateTimer(float dt);
26 
30  void resetTimer();
31 
35  void setTimerLength(float timerLength);
36 
37 
41  void resetTimerLength(float timerLength);
42 
47  bool checkTimer();
48 
49 private:
51  float timer;
53  float timerLength;
55  bool finished;
56 };
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