Breakout
Public Member Functions | List of all members
LTimer Class Reference

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...
 

Detailed Description

This class abstracts multiple timing related mechanism in the game.

Constructor & Destructor Documentation

◆ LTimer()

LTimer::LTimer ( )

The constructor of the class.

Member Function Documentation

◆ getSDLTicks()

uint32_t LTimer::getSDLTicks ( )

Method to get the current SDL ticks.

◆ getTicks()

uint32_t LTimer::getTicks ( )

Method to get the current ticks.

◆ isPaused()

bool LTimer::isPaused ( )

Method to check if the timer is paused.

◆ isStarted()

bool LTimer::isStarted ( )

Method to check if the timer is started.

◆ pause()

void LTimer::pause ( )

Method to pause the timer.

◆ start()

void LTimer::start ( )

Method to start the timer.

◆ stop()

void LTimer::stop ( )

Method to stop the timer.

◆ unpause()

void LTimer::unpause ( )

Method to unpause the timer.


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