コード例 #1
0
ファイル: Garage.cs プロジェクト: ohadke/Garage-logic-and-UI
        public void InsertVehicleToGarage(int i_EnergyType, int i_WhichVehicleType, string i_Model,
                                          string i_LicenseNumber, float[] i_WheelsAirPressure,
                                          string i_WheelsManufacturer, float i_EnergyLeft,
                                          string i_OwnerPhoneNumber, string i_OwnerName, object[] i_VehicleParameters)
        {
            Vehicle newVehicle = CreateNewVehicle.MakeNewVehicle((eEnergyType)i_EnergyType, (eVehicleType)i_WhichVehicleType,
                                                                 i_Model, i_LicenseNumber, i_WheelsAirPressure, i_WheelsManufacturer, i_EnergyLeft, i_OwnerPhoneNumber
                                                                 , i_OwnerName, i_VehicleParameters);

            m_VehicleDB.Add(newVehicle);
        }
コード例 #2
0
        public Vehicle CreateVehicle(CreateNewVehicle.eVehicleType i_VehicleType, string i_VehicleLicenseNumber, string i_VehicleModelName, string i_VehicleWheelsManufacturerName, float i_CurrentAirPressureInWheels, float i_CurrentAmountOfEnergy, List <Object> i_UniqueVehiclePropertiesArr)
        {
            Vehicle vehicle = CreateNewVehicle.CreateVehicle(i_VehicleType, i_VehicleLicenseNumber, i_VehicleModelName, i_VehicleWheelsManufacturerName, i_CurrentAirPressureInWheels, i_CurrentAmountOfEnergy, i_UniqueVehiclePropertiesArr);

            return(vehicle);
        }