gameEngine/gameEngine/SensorActuators/TimesActuator.cpp
//do something to a sprite after a number of times, example "die" after health decreases to 0.
do something to a sprite after a number of times, example "die" after health decreases to 0.
do something to a sprite after a number of times example " die " after health decreases to 0 .
TimesActuator::TimesActuator(std::string n, AbstractSprite * s, int i, std::string con):
	sprite(s), index(i), condition(con)
{
	this->name = n;
	this->currentIndex = 0;
}
TimesActuator :: TimesActuator ( std :: string n , AbstractSprite * s , int i , std :: string con ) : sprite ( s ) , index ( i ) , condition ( con ) { this -> name = n ; this -> currentIndex = 0 ; }
do something to a sprite after a number of times, example "die" after health decreases to 0.
do something to a sprite after a number of times example " die " after health decreases to 0 .