Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
Timer Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ duration

float Timer::duration

Duration of the timer in seconds.

◆ elapsedTime

float Timer::elapsedTime

Time elapsed since the timer was started.

◆ finished

bool Timer::finished

Flag indicating if the timer is finished.

◆ inProgress

bool Timer::inProgress

Flag indicating if the timer is in progress.

◆ startTime

float Timer::startTime

Time when the timer was started.


The documentation for this struct was generated from the following file: