Funcao addXY para ajudar em sprites
[Projeto-PCG.git] / timer.h
bloba2f2c0898f4575e16aed5db7692b6ec70fcfb350
1 class Timer
3 private:
4 //The clock time when the timer started
5 int startTicks;
7 //The ticks stored when the timer was paused
8 int pausedTicks;
10 //The timer status
11 bool paused;
12 bool started;
14 public:
15 //Initializes variables
16 Timer();
18 //The various clock actions
19 void start();
20 void stop();
21 void pause();
22 void unpause();
24 //Gets the timer's time
25 int get_ticks();
27 //Checks the status of the timer
28 bool is_started();
29 bool is_paused();