sim/Simulator.cpp
// Decreases the speed of the simulation.
Decreases the speed of the simulation.
Decreases the speed of the simulation .
void Simulator::decreaseSpeed()
{
	if ((speed - simSpeedIncrement) > minSimSpeed)
	{
		speed -= simSpeedIncrement;
		cout << "Simulator: speed decreased (" << speed << ")" << endl;
		if (speed == 0)
		{
			pause();
		}
	}
	else
	{
		cout << "Simulator: at min speed" << endl;
	}
}
void Simulator :: decreaseSpeed ( ) { if ( ( speed - simSpeedIncrement ) > minSimSpeed ) { speed -= simSpeedIncrement ; cout << " " << speed << " " << endl ; if ( speed == 0 ) { pause ( ) ; } } else { cout << " " << endl ; } }
Decreases the speed of the simulation.
Decreases the speed of the simulation .