blob: 8a6406c1f920544c3613b826daf6324d6a76158f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "Checkpoint.h"
int Checkpoint::_checkpointCount = 0;
Checkpoint::Checkpoint(double x, double y)
:GameObject(x,y,BitmapStore::CHECKPOINT)
{
++_checkpointCount;
}
Checkpoint::Checkpoint(const Checkpoint& ref)
:GameObject(ref._x,ref._y,ref._image)
{
++_checkpointCount;
}
Checkpoint::~Checkpoint()
{
--_checkpointCount;
}
int Checkpoint::checkpointCount()
{
return _checkpointCount;
}
void Checkpoint::collect()
{
_destroyed = true;
}
|