Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Private Attributes | List of all members
C_Timer Class Reference

Handles timer functions. More...

#include <C_Timer.h>

Collaboration diagram for C_Timer:
Collaboration graph

Public Member Functions

 C_Timer (float timerLength)
 Constructs the timer object. More...
 
 ~C_Timer ()
 Destructs the timer object. More...
 
void upadateTimer (float dt)
 Updates the timer using the delta time. More...
 
void resetTimer ()
 Resets the timer to 0. More...
 
void setTimerLength (float timerLength)
 Changes the timer length. More...
 
void resetTimerLength (float timerLength)
 Change the timer length and reset the timer. More...
 
bool checkTimer ()
 Returns if the timer has finished or not. More...
 

Private Attributes

float timer
 The current time in the timer. More...
 
float timerLength
 The length of the timer. More...
 
bool finished
 A boolean for if the timer has finished. More...
 

Detailed Description

Handles timer functions.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

C_Timer::C_Timer ( float  timerLength)

Constructs the timer object.

Parameters
floatthe length of the timer.

Here is the call graph for this function:

C_Timer::~C_Timer ( )

Destructs the timer object.

Member Function Documentation

bool C_Timer::checkTimer ( )

Returns if the timer has finished or not.

Returns
If the timer has finished.

Here is the caller graph for this function:

void C_Timer::resetTimer ( )

Resets the timer to 0.

Here is the caller graph for this function:

void C_Timer::resetTimerLength ( float  timerLength)

Change the timer length and reset the timer.

Here is the call graph for this function:

Here is the caller graph for this function:

void C_Timer::setTimerLength ( float  timerLength)

Changes the timer length.

Here is the caller graph for this function:

void C_Timer::upadateTimer ( float  dt)

Updates the timer using the delta time.

Parameters
dtThe delta time.

Here is the caller graph for this function:

Member Data Documentation

bool C_Timer::finished
private

A boolean for if the timer has finished.

float C_Timer::timer
private

The current time in the timer.

float C_Timer::timerLength
private

The length of the timer.


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