Rally X
ELEN3009 Project by Justin Wernick and David Schneider
|
00001 #include "Checkpoint.h" 00002 00003 int Checkpoint::_checkpointCount = 0; 00004 00005 Checkpoint::Checkpoint(double x, double y) 00006 :GameObject(x,y,BitmapStore::CHECKPOINT) 00007 { 00008 ++_checkpointCount; 00009 } 00010 00011 Checkpoint::Checkpoint(const Checkpoint& ref) 00012 :GameObject(ref._x,ref._y,ref._image) 00013 { 00014 ++_checkpointCount; 00015 } 00016 00017 Checkpoint::~Checkpoint() 00018 { 00019 --_checkpointCount; 00020 } 00021 00022 int Checkpoint::checkpointCount() 00023 { 00024 return _checkpointCount; 00025 } 00026 00027 void Checkpoint::collect() 00028 { 00029 _destroyed = true; 00030 }