Пример #1
0
 public RegularMotorcycle(
     string i_modelName,
     string i_licenseNumber,
     string i_wheelManufacturer,
     float i_currentAirPressure,
     float i_remainingFuelAmount,
     int i_engineCapacity,
     e_LicenseType i_licenseType)
     : base(i_modelName, i_licenseNumber, i_wheelManufacturer, i_currentAirPressure, i_remainingFuelAmount, i_engineCapacity, i_licenseType)
 {
     this.m_vehicleEngine = new Engine(Engine.e_TypeOfEngine.Fuel, Engine.e_EnergyType.Octan95, i_remainingFuelAmount, GlobalConstants.regularMotorcycleMaxFuelTank);
 }
Пример #2
0
 public ElectricMotorcycle(
     string i_modelName,
     string i_licenseNumber,
     string i_wheelManufacturer,
     float i_currentAirPressure,
     float i_remainingBatteryTime,
     int i_engineCapacity,
     e_LicenseType i_licenseType)
     : base(i_modelName, i_licenseNumber, i_wheelManufacturer, i_currentAirPressure, i_remainingBatteryTime, i_engineCapacity, i_licenseType)
 {
     this.m_vehicleEngine = new Engine(Engine.e_TypeOfEngine.Electric, Engine.e_EnergyType.Battery, i_remainingBatteryTime, GlobalConstants.electricMotorcycleMaxBatteryCapacity);
 }
Пример #3
0
 public Motorcycle(
     string i_modelName,
     string i_licenseNumber,
     string i_wheelManufacturer,
     float i_currentAirPressure,
     float i_amountEnergyResource,
     int i_engineCapacity,
     e_LicenseType i_licenseType)
     : base(i_modelName, i_licenseNumber, i_wheelManufacturer, GlobalConstants.motorcycleNumberOfWheels, GlobalConstants.motorcycleMaxAirPressure, i_currentAirPressure, i_amountEnergyResource)
 {
     this.m_licenseType    = i_licenseType;
     this.m_engineCapacity = i_engineCapacity;
 }