Exemple #1
0
        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);
        }
Exemple #2
0
        public void InflateTires(string i_LicensePlate)
        {
            if (Vehicle.CheckLicensePlate(i_LicensePlate) == false)
            {
                throw new FormatException("Invalid license plate");
            }

            VehiclesInTheGarage[i_LicensePlate].OwnersVehicle.InflateTires();
        }
Exemple #3
0
        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;
        }
Exemple #4
0
        public bool IsVehicleInGarage(string i_LicensePlate)
        {
            if (Vehicle.CheckLicensePlate(i_LicensePlate) == false)
            {
                throw new FormatException("Invalid license plate");
            }

            return(m_VehiclesInTheGarage.ContainsKey(i_LicensePlate));
        }
Exemple #5
0
        public string GetVehicleDetailsString(string i_LicensePlate)
        {
            if (Vehicle.CheckLicensePlate(i_LicensePlate) == false)
            {
                throw new FormatException("Invalid license plate");
            }

            return(VehiclesInTheGarage[i_LicensePlate].ToString());
        }