package builder;
import abstractFactory.Car;
import abstractFactory.rusFleet.Vaz2110;
public class Vaz2110Builder extends CarBuilder {
private Car finalCar = null;
private int doorNum = 0;
private int wheelNum = 0;
public void MakeCar() {
finalCar = new Vaz2110("ww222w90RUS", 11, false);
}
public void MakeDoor(int side, int position) {
doorNum++;
finalCar.setDoorNum(doorNum);
finalCar.setSeatNum(doorNum);
// Other processing...
}
public void MakeEngine(int position) {
finalCar.InstallEngine(position);
}
public void MakeWheel(int side, int position) {
finalCar.setWheelNum(++wheelNum);
// Other processing...
}
public Car GetCar() {
return finalCar;
}
public void Colour(int color) {
finalCar.setColor(color);
}
}