public void FillEnergy(string i_LicensePlate, float i_EnergyAmount, Engine.eFuelType?i_FuelType = null) { if (Vehicle.CheckLicensePlate(i_LicensePlate) == false) { throw new FormatException("Invalid license plate"); } VehiclesInTheGarage[i_LicensePlate].OwnersVehicle.FillEnergy(i_EnergyAmount, i_FuelType); }
public void InflateTires(string i_LicensePlate) { if (Vehicle.CheckLicensePlate(i_LicensePlate) == false) { throw new FormatException("Invalid license plate"); } VehiclesInTheGarage[i_LicensePlate].OwnersVehicle.InflateTires(); }
public void ChangeVehicleStatus(string i_LicensePlate, Garage.eVehicleStatus i_VehicleNewStatus) { if (Vehicle.CheckLicensePlate(i_LicensePlate) == false) { throw new FormatException("Invalid license plate"); } m_VehiclesInTheGarage[i_LicensePlate].VehicleStatus = i_VehicleNewStatus; }
public bool IsVehicleInGarage(string i_LicensePlate) { if (Vehicle.CheckLicensePlate(i_LicensePlate) == false) { throw new FormatException("Invalid license plate"); } return(m_VehiclesInTheGarage.ContainsKey(i_LicensePlate)); }
public string GetVehicleDetailsString(string i_LicensePlate) { if (Vehicle.CheckLicensePlate(i_LicensePlate) == false) { throw new FormatException("Invalid license plate"); } return(VehiclesInTheGarage[i_LicensePlate].ToString()); }