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(); }
public void FillFuel(FuelVehicle i_FuelVehicle, FuelVehicle.eFuel i_Fuel, float i_HowMuchToFill) { i_FuelVehicle.FillFuel(i_Fuel, i_HowMuchToFill); }
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); }
public bool IsFuelFit(FuelVehicle.eFuel i_Fuel, Vehicle i_Vehicle) { FuelVehicle fuelVehicle = i_Vehicle as FuelVehicle; return(fuelVehicle.Fuel == i_Fuel); }