예제 #1
0
 public ElectricCar(GeneralRequest i_GlobalRequest, CarRequest i_GenericCar, float i_EnergyRemined, float i_MaxEnergyLevel)
     : base(i_GlobalRequest, i_GenericCar)
 {
     Engine = new Engine(FuelType.Electricity, i_EnergyRemined, i_MaxEnergyLevel);
 }
예제 #2
0
 public LiquidFuelCar(GeneralRequest i_GeneralDetails, CarRequest i_CarDetails, float i_CurrentEnergyLevel, float i_MaxEnergyLevel)
     : base(i_GeneralDetails, i_CarDetails)
 {
     Engine = new Engine(FuelType.Octan96, i_CurrentEnergyLevel, i_MaxEnergyLevel);
 }
예제 #3
0
 protected Car(GeneralRequest i_CommonDetails, CarRequest i_CarDetails) : base(i_CommonDetails)
 {
     CarColor      = i_CarDetails.CarColor;
     NumberOfDoors = i_CarDetails.NumberOfDoors;
 }