package builder;
import abstractFactory.Car;
import abstractFactory.Truck;
import abstractFactory.rusFleet.Kamaz;
public class KamazBuilder extends CarBuilder {
private Truck kamaz;
private final int wheelNum = 8;
private int doorNum = 0;
public void MakeCar() {
kamaz = new Kamaz("ww223w90RUS", 11, wheelNum, true);
kamaz.setDoorNum(wheelNum);
}
public void MakeDoor(int side, int position) {
doorNum++;
kamaz.setDoorNum(doorNum);
kamaz.setSeatNum(doorNum);
// Other processing...
}
public void MakeEngine(int position) {
kamaz.InstallEngine(position);
}
public Car GetCar() {
return kamaz;
}
public void Colour(int color) {
kamaz.setColor(color);
}
}