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