示例#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;
 }