Breakout
|
This class abstracts multiple timing related mechanism in the game. More...
#include <LTimer.h>
Public Member Functions | |
LTimer () | |
The constructor of the class. More... | |
void | start () |
Method to start the timer. More... | |
void | stop () |
Method to stop the timer. More... | |
void | pause () |
Method to pause the timer. More... | |
void | unpause () |
Method to unpause the timer. More... | |
uint32_t | getTicks () |
Method to get the current ticks. More... | |
uint32_t | getSDLTicks () |
Method to get the current SDL ticks. More... | |
bool | isStarted () |
Method to check if the timer is started. More... | |
bool | isPaused () |
Method to check if the timer is paused. More... | |
This class abstracts multiple timing related mechanism in the game.
LTimer::LTimer | ( | ) |
The constructor of the class.
uint32_t LTimer::getSDLTicks | ( | ) |
Method to get the current SDL ticks.
uint32_t LTimer::getTicks | ( | ) |
Method to get the current ticks.
bool LTimer::isPaused | ( | ) |
Method to check if the timer is paused.
bool LTimer::isStarted | ( | ) |
Method to check if the timer is started.
void LTimer::pause | ( | ) |
Method to pause the timer.
void LTimer::start | ( | ) |
Method to start the timer.
void LTimer::stop | ( | ) |
Method to stop the timer.
void LTimer::unpause | ( | ) |
Method to unpause the timer.