Rally X
ELEN3009 Project by Justin Wernick and David Schneider
source/logic/LimitedTimeObject.cpp
Go to the documentation of this file.
00001 #include "LimitedTimeObject.h"
00002 
00003 LimitedTimeObject::LimitedTimeObject(double x, double y, BitmapStore::Image image, int time)
00004     :GameObject(x,y,image),
00005     _remainingTime(time)
00006 {
00007 }
00008 
00009 void LimitedTimeObject::update()
00010 {
00011     --_remainingTime;
00012     if (_remainingTime<=0)
00013     {
00014         _destroyed = true;
00015     }
00016 }
 All Classes Files Functions Variables Typedefs Enumerations Enumerator