示例#1
0
 public override void UpdateProperties(Dictionary <Vehicle.eProperties, string> i_VehiclePropertiesValues, List <string> i_WheelsMakers, List <float> i_WheelsAirPressure)
 {
     base.UpdateProperties(i_VehiclePropertiesValues, i_WheelsMakers, i_WheelsAirPressure);
     DrivingLicenseType = StringToEnum <eDrivingLicenseType>(i_VehiclePropertiesValues[eProperties.LicenseType]);
     EngineVolume       = int.Parse(i_VehiclePropertiesValues[eProperties.EngineVolume]);
     VehicleEngine.UpdateProperties(i_VehiclePropertiesValues, CurrentEnergyPercentage);
 }
示例#2
0
 public override void UpdateProperties(Dictionary <Vehicle.eProperties, string> i_VehiclePropertiesValues, List <string> i_WheelsMakers, List <float> i_WheelsAirPressure)
 {
     base.UpdateProperties(i_VehiclePropertiesValues, i_WheelsMakers, i_WheelsAirPressure);
     ContainDangerousMaterials = i_VehiclePropertiesValues[eProperties.IsDangerousMaterials].Equals('Y') ? true : false;
     CargoVolume = float.Parse(i_VehiclePropertiesValues[eProperties.CargoVolume]);
     VehicleEngine.UpdateProperties(i_VehiclePropertiesValues, CurrentEnergyPercentage);
 }
示例#3
0
 public override void UpdateProperties(Dictionary <Vehicle.eProperties, string> i_VehiclePropertiesValues, List <string> i_WheelsMakers, List <float> i_WheelsAirPressure)
 {
     base.UpdateProperties(i_VehiclePropertiesValues, i_WheelsMakers, i_WheelsAirPressure);
     CarColor    = StringToEnum <eCarColors>(i_VehiclePropertiesValues[eProperties.Color]);
     DoorsNumber = StringToEnum <eDoorsNumber>(i_VehiclePropertiesValues[eProperties.Doors]);
     VehicleEngine.UpdateProperties(i_VehiclePropertiesValues, CurrentEnergyPercentage);
 }