コード例 #1
0
ファイル: CarDirector.cs プロジェクト: romik280/Task_1
 public void ConstructCar(Brand brand, string model, Carcass carcass, int priceCar, int maxSpeed, int fuelConsumption)
 {
     builder.CreateCar();
     builder.SetBrand(brand);
     builder.SetModel(model);
     builder.SetCarcas(carcass);
     builder.SetPriceCar(priceCar);
     builder.SetMaxSpeed(maxSpeed);
     builder.SetFuelConsumption(fuelConsumption);
     builder.AddAirConditioning();
     builder.AddHeatingSeats();
     builder.AddVentilationSeats();
     builder.AddZonalClimateControl();
 }