GEJM  1.0.0.0
a 2D platformer made by students
Public Member Functions | List of all members
Timer Class Reference

#include <Timer.h>

Public Member Functions

 Timer ()
 
void start ()
 
void stop ()
 
void pause ()
 
void unpause ()
 
Uint32 getTicks ()
 
bool isStarted ()
 
bool isPaused ()
 

Detailed Description

Timer is a class that is basically a timer.

Constructor & Destructor Documentation

Timer::Timer ( )

Initializes variables.

Timer implementation Initializes variables.

Member Function Documentation

Uint32 Timer::getTicks ( )

Gets the timer's time.

Returns
Uint32
bool Timer::isPaused ( )

Checks if the timer is paused.

Returns
bool
bool Timer::isStarted ( )

Checks if the timer is started.

Returns
bool
void Timer::pause ( )

Pause timer.

void Timer::start ( )

Start timer.

void Timer::stop ( )

Stop timer.

void Timer::unpause ( )

Unpause timer.


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