package builder;
import abstractFactory.Car;
public class RotatingPartCountBuilder extends CarBuilder {
private int count = 0;
private final int inSkeleton = 10;
public RotatingPartCountBuilder(int initialCount) {
count = initialCount;
}
public Car GetCar() {
return null;
}
public void MakeCar() {
count += inSkeleton;
}
public void MakeDoor(int side, int position) {
count += 3;
}
public void MakeEngine(int position) {
count += 100;
}
public void MakeWheel(int side, int position) {
count += 2;
}
public int getCount() {
return count;
}
public void Reset(int initialCount) {
count = initialCount;
}
}