src/main/java/tsz/game/model/GameWindow.java
/**
	 * Decides the amount of cars to spawn.
	 * @param randomForTheAmountOfCars - random number.
	 * @return the amount of new cars to spawn.
	 */
Decides the amount of cars to spawn.
@param randomForTheAmountOfCars - random number.
@return the amount of new cars to spawn.
Decides the amount of cars to spawn . @param randomForTheAmountOfCars - random number . @return the amount of new cars to spawn .
public int decidingTheAmountOfCars(int randomForTheAmountOfCars) {
		int returnable = 0;
		switch(randomForTheAmountOfCars) {
		case 0 : case 1 : 
			returnable = 1;
			break;
		case 2: case 3: case 4: case 5:
			returnable = 2;
			break;
		case 6: case 7: case 8:
			returnable = 3;
			break;
		default: returnable = 4;
		}
		return returnable;
	}
public int decidingTheAmountOfCars ( int randomForTheAmountOfCars ) { int returnable = 0 ; switch ( randomForTheAmountOfCars ) { case 0 : case 1 : returnable = 1 ; break ; case 2 : case 3 : case 4 : case 5 : returnable = 2 ; break ; case 6 : case 7 : case 8 : returnable = 3 ; break ; default : returnable = 4 ; } return returnable ; }
Decides the amount of cars to spawn.
Decides the amount of cars to spawn .