public void FillFuelToTank(eFuelType i_FuelType, string i_LicenseNumber, string i_AmountToFill) { EngineRunsOnFuel engineOnFuel = r_VehiclesInGarage[i_LicenseNumber].Vehicle.EngineOfVehicle as EngineRunsOnFuel; engineOnFuel.EngineFuelFill(i_FuelType, i_AmountToFill); }
public FuelCar(string i_NumberOfPlate) : base(i_NumberOfPlate) { m_Engine = new EngineRunsOnFuel(k_CarFuelType, k_CarTankMaxCapacity); AddWheels(k_MaximumPressureOfWheels); }
public FuelTruck(string i_LicensePlate) : base(i_LicensePlate) { m_Engine = new EngineRunsOnFuel(k_TruckFuelType, k_TruckTankMaxCapacity); AddWheels(k_MaximumPressureOfWheels); }