Beispiel #1
0
        public static Vehicle CreateTruck(Vehicle.BasicInformationOfVehicleAndOwner informationOfVehicleAndOwner, bool i_isCarringHazardousMaterials, float i_volumeCapacity)
        {
            Vehicle truck = new Truck(
                informationOfVehicleAndOwner.m_ModelName,
                informationOfVehicleAndOwner.m_LicenseNumber,
                informationOfVehicleAndOwner.m_WheelManufacturer,
                informationOfVehicleAndOwner.m_CurrentAirPressure,
                informationOfVehicleAndOwner.m_AmountEnergyResource,
                i_isCarringHazardousMaterials,
                i_volumeCapacity);

            return(truck);
        }
Beispiel #2
0
        public static Vehicle CreateRegularCar(Vehicle.BasicInformationOfVehicleAndOwner informationOfVehicleAndOwner, Car.e_Color i_color, Car.e_NumberOfDoors i_numberOfDoors)
        {
            Vehicle regularCar = new RegularCar(
                informationOfVehicleAndOwner.m_ModelName,
                informationOfVehicleAndOwner.m_LicenseNumber,
                informationOfVehicleAndOwner.m_WheelManufacturer,
                informationOfVehicleAndOwner.m_CurrentAirPressure,
                informationOfVehicleAndOwner.m_AmountEnergyResource,
                i_color,
                i_numberOfDoors);

            return(regularCar);
        }
Beispiel #3
0
        public static Vehicle CreateElectricMotorcycle(Vehicle.BasicInformationOfVehicleAndOwner informationOfVehicleAndOwner, Motorcycle.e_LicenseType i_licenseType, int i_engineCapacity)
        {
            Vehicle electricMotorcycle = new ElectricMotorcycle(
                informationOfVehicleAndOwner.m_ModelName,
                informationOfVehicleAndOwner.m_LicenseNumber,
                informationOfVehicleAndOwner.m_WheelManufacturer,
                informationOfVehicleAndOwner.m_CurrentAirPressure,
                informationOfVehicleAndOwner.m_AmountEnergyResource,
                i_engineCapacity,
                i_licenseType);

            return(electricMotorcycle);
        }