The Timer struct used to keep track of time. More...
#include <timer.h>
Public Attributes | |
| float | startTime |
| Time when the timer was started. | |
| float | elapsedTime |
| Time elapsed since the timer was started. | |
| float | duration |
| Duration of the timer in seconds. | |
| bool | inProgress |
| Flag indicating if the timer is in progress. | |
| bool | finished |
| Flag indicating if the timer is finished. | |
The Timer struct used to keep track of time.
Used for cooldowns, delays, etc. It has a start time, an elapsed time, a duration, and flags to check if the timer is in progress or finished.
| float Timer::duration |
Duration of the timer in seconds.
| float Timer::elapsedTime |
Time elapsed since the timer was started.
| bool Timer::finished |
Flag indicating if the timer is finished.
| bool Timer::inProgress |
Flag indicating if the timer is in progress.
| float Timer::startTime |
Time when the timer was started.