Ejemplo n.º 1
0
 public ElectricBike(
     string i_ModelName,
     string i_LicenseNumber,
     string[] i_ManufacturerNamesOfAllTires,
     float[] i_CurrentPressureOfAllTires,
     float i_RemainingBatteryTime,
     Bike.eLicense i_RequiredLicense,
     int i_EngineVolume) : base(
         i_ModelName,
         i_LicenseNumber,
         i_RemainingBatteryTime / k_MaxBatteryTime,
         VehicleTypes.eVehicleType.ElectricBike,
         i_ManufacturerNamesOfAllTires,
         i_CurrentPressureOfAllTires,
         i_RemainingBatteryTime,
         k_MaxBatteryTime)
 {
     m_ElectricBike = new Bike(i_RequiredLicense, i_EngineVolume);
 }
Ejemplo n.º 2
0
        public static Vehicle CreateNewElectricBike(
            string i_ModelName,
            string i_LicenseNumber,
            string[] i_ManufacturerNamesOfAllTires,
            float[] i_CurrentPressureOfAllTires,
            float i_RemainingBatteryTime,
            Bike.eLicense i_RequiredLicense,
            int i_EngineVolume)
        {
            Vehicle vehicle = new ElectricBike(
                i_ModelName,
                i_LicenseNumber,
                i_ManufacturerNamesOfAllTires,
                i_CurrentPressureOfAllTires,
                i_RemainingBatteryTime,
                i_RequiredLicense,
                i_EngineVolume);

            return(vehicle);
        }
Ejemplo n.º 3
0
 public PetrolBike(
     string i_ModelName,
     string i_LicenseNumber,
     string[] i_ManufacturerNamesOfAllTires,
     float[] i_CurrentPressureOfAllTires,
     float i_RemainingFuelAmount,
     int i_EngineVolume,
     Bike.eLicense i_LicenseTypeRequired) : base(
         i_ModelName,
         i_LicenseNumber,
         i_RemainingFuelAmount / k_MaxFuelTankCapacity,
         k_VehicleType,
         i_ManufacturerNamesOfAllTires,
         i_CurrentPressureOfAllTires,
         k_FuelType,
         k_MaxFuelTankCapacity,
         i_RemainingFuelAmount)
 {
     m_PetrolBike = new Bike(i_LicenseTypeRequired, i_EngineVolume);
 }
Ejemplo n.º 4
0
        public static Vehicle CreateNewPetrolBike(
            string i_ModelName,
            string i_LicenseNumber,
            string[] i_ManufacturerNamesOfAllTires,
            float[] i_CurrentPressureOfAllTires,
            float i_RemainingFuelAmount,
            int i_EngineVolume,
            Bike.eLicense i_LicenseTypeRequired)
        {
            Vehicle vehicle = new PetrolBike(
                i_ModelName,
                i_LicenseNumber,
                i_ManufacturerNamesOfAllTires,
                i_CurrentPressureOfAllTires,
                i_RemainingFuelAmount,
                i_EngineVolume,
                i_LicenseTypeRequired);

            return(vehicle);
        }