Beispiel #1
0
 public virtual void ConstructSuv(Builders.Builder builder)
 {
     builder.SetType(Cars.Type.SUV);
     builder.SetSeats(4);
     builder.SetEngine(new Engine(2.5, 0));
     builder.SetTransmission(Transmission.MANUAL);
     builder.SetGpsNavigator(new GPSNavigator());
 }
Beispiel #2
0
 public void ConstructCityCar(Builders.Builder builder)
 {
     builder.SetType(Cars.Type.CITY_CAR);
     builder.SetSeats(2);
     builder.SetEngine(new Engine(1.2, 0));
     builder.SetTransmission(Transmission.AUTOMATIC);
     builder.SetTripComputer(new TripComputer());
     builder.SetGpsNavigator(new GPSNavigator());
 }
Beispiel #3
0
 public void ConstructSportsCar(Builders.Builder builder)
 {
     builder.SetType(Cars.Type.SPORTS_CAR);
     builder.SetSeats(2);
     builder.SetEngine(new Engine(3.0, 0));
     builder.SetTransmission(Transmission.SEMI_AUTOMATIC);
     builder.SetTripComputer(new TripComputer());
     builder.SetGpsNavigator(new GPSNavigator());
 }