Exemple #1
0
 /// Electring Driving
 public Car(string i_ModelName, string i_LicenseNumber, float i_PercentageOfVehicleEnergy, float i_TimeRemainingBattey, eVehicleColor i_eVehicleColor, string i_WheelsManufacturerName, float WheelsCurrentAirPressure)
     : base(i_ModelName, i_LicenseNumber, i_PercentageOfVehicleEnergy)
 {
     this.m_eColor                  = i_eVehicleColor;
     this.m_eQuantityOfDoors        = eQuantityOfDoors.Four;
     this.m_MaxFuelOrMaxTimeBattery = 1.8f;
     ElectricVehicle                = new ElectricVehicle(i_TimeRemainingBattey, m_MaxFuelOrMaxTimeBattery);
     Wheels = new Wheel(i_WheelsManufacturerName, WheelsCurrentAirPressure, 31, 4);
 }
Exemple #2
0
 //// Driving on fuel
 public Car(eVehicleColor i_eVehicleColor, string i_ModelName, string i_LicenseNumber, float i_PercentageOfVehicleEnergy, float i_CurrentFuel, string i_WheelsManufacturerName, float i_WheelsCurrentAirPressure)
     : base(i_ModelName, i_LicenseNumber, i_PercentageOfVehicleEnergy)
 {
     this.m_eColor           = i_eVehicleColor;
     this.m_eQuantityOfDoors = eQuantityOfDoors.Four;
     FuelVehicle.eFueltType eFueltType = FuelVehicle.eFueltType.Octan96;
     this.m_MaxFuelOrMaxTimeBattery = 55f;
     VehicleDrivingOnFuel           = new FuelVehicle(i_CurrentFuel, m_MaxFuelOrMaxTimeBattery, eFueltType);
     Wheels  = new Wheel(i_WheelsManufacturerName, i_WheelsCurrentAirPressure, 31, 4);
     m_fuelt = ", fuelt type: " + eFueltType;
 }