repo.or.cz
/
Projeto-PCG.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Agora nao eh mais uma bola o player, eh um par de pernas.
[Projeto-PCG.git]
/
timer.h
blob
a2f2c0898f4575e16aed5db7692b6ec70fcfb350
1
class
Timer
2
{
3
private
:
4
//The clock time when the timer started
5
int
startTicks
;
6
7
//The ticks stored when the timer was paused
8
int
pausedTicks
;
9
10
//The timer status
11
bool
paused
;
12
bool
started
;
13
14
public
:
15
//Initializes variables
16
Timer
();
17
18
//The various clock actions
19
void
start
();
20
void
stop
();
21
void
pause
();
22
void
unpause
();
23
24
//Gets the timer's time
25
int
get_ticks
();
26
27
//Checks the status of the timer
28
bool
is_started
();
29
bool
is_paused
();
30
};