Archimedes/Dash Da Capo!
All Classes Functions
Public Member Functions | Static Public Member Functions | List of all members
Timer Class Reference

general timer class. We use it for transitions effects and also timed notifications. More...

#include <Timer.h>

Public Member Functions

void reset ()
 
float deltaTime ()
 
void timerScale (float t)
 
float getTimerScale ()
 
void update ()
 updates the timer (needs to be at the top of the game loop)
 
bool timePassed (int countdownTime, int currentTime)
 Checks whether some time has elapsed. Incomplete function.
 

Static Public Member Functions

static Timerinstance ()
 This is a singleton so we don't provide direct access to the timer constructor.
 
static void release ()
 

Detailed Description

general timer class. We use it for transitions effects and also timed notifications.

Member Function Documentation

◆ deltaTime()

float Timer::deltaTime ( )
Returns
the change in time

◆ instance()

static Timer * Timer::instance ( )
static

This is a singleton so we don't provide direct access to the timer constructor.

Returns

◆ timePassed()

bool Timer::timePassed ( int  countdownTime,
int  currentTime 
)

Checks whether some time has elapsed. Incomplete function.

Parameters
countdownTime
currentTime
Returns


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