Beispiel #1
0
 public FuelCar(string i_ModelName, string i_LicensePlateNumber, int i_NumOfWheels, float i_MaxPressureLevelForWheel, FuelVehicle.eFuel i_FuelType, float i_MaxAmountOfFuel) : base(i_ModelName, i_LicensePlateNumber, i_NumOfWheels, i_MaxPressureLevelForWheel, i_MaxAmountOfFuel, i_FuelType)
 {
     m_Car = new Car();
 }
Beispiel #2
0
 public void FillFuel(FuelVehicle i_FuelVehicle, FuelVehicle.eFuel i_Fuel, float i_HowMuchToFill)
 {
     i_FuelVehicle.FillFuel(i_Fuel, i_HowMuchToFill);
 }
Beispiel #3
0
 public bool IfFuelFits(FuelVehicle i_FuelVehicle, FuelVehicle.eFuel i_Fuel, out FuelVehicle.eFuel o_CorrectFuelType)
 {
     o_CorrectFuelType = i_FuelVehicle.Fuel;
     return(i_FuelVehicle.Fuel == i_Fuel);
 }
Beispiel #4
0
        public bool IsFuelFit(FuelVehicle.eFuel i_Fuel, Vehicle i_Vehicle)
        {
            FuelVehicle fuelVehicle = i_Vehicle as FuelVehicle;

            return(fuelVehicle.Fuel == i_Fuel);
        }