SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Public Member Functions | List of all members
TickTimer Class Reference

#include <TickTimer.hpp>

Public Member Functions

 TickTimer ()
 
 ~TickTimer ()
 
Uint32 get_ticks ()
 
void restart ()
 

Detailed Description

Uses the SDL timer to keep track of how much time has passed.

Constructor & Destructor Documentation

TickTimer::TickTimer ( )

Start the timer at 0.

TickTimer::~TickTimer ( )

No behaviour.

Member Function Documentation

Uint32 TickTimer::get_ticks ( )

Return how much time has passed since the timie was last started, in milliseconds.

void TickTimer::restart ( )

Start the timer from 0 again.


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