コード例 #1
0
        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);
        }
コード例 #2
0
 public FuelCar(string i_NumberOfPlate) : base(i_NumberOfPlate)
 {
     m_Engine = new EngineRunsOnFuel(k_CarFuelType, k_CarTankMaxCapacity);
     AddWheels(k_MaximumPressureOfWheels);
 }
コード例 #3
0
 public FuelTruck(string i_LicensePlate) : base(i_LicensePlate)
 {
     m_Engine = new EngineRunsOnFuel(k_TruckFuelType, k_TruckTankMaxCapacity);
     AddWheels(k_MaximumPressureOfWheels);
 }