#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; }