Beispiel #1
0
        public void FuelGasolineVehicle(string i_LicensePlateNumber, string i_GasolineType, float i_AmountToAdd)
        {
            eEnergyTypes gasolineType = parseEnergyTypeFromString(i_GasolineType);
            Vehicle      vehicle      = r_VehicleInventory[i_LicensePlateNumber];

            vehicle.Energize(gasolineType, i_AmountToAdd);
        }
Beispiel #2
0
        public void ChargeElectricVehicle(string i_LicensePlateNumber, float i_ElectricityHoursToAdd)
        {
            Vehicle vehicle = r_VehicleInventory[i_LicensePlateNumber];

            vehicle.Energize(null, i_ElectricityHoursToAdd);
        }