Пример #1
0
 public ElectricMotorCycle(eMotorCycleLicenseType i_LicenseType, int i_EngineCapacity,
                           string i_LicenseNumber, string i_Model /*, i_EnergyLeftPercentage*/)
     : base(i_LicenseType, i_EngineCapacity, i_LicenseNumber, i_Model,
            k_NumOfWheels, k_MaxWheelPressure /*, i_EnergyLeftPercentage*/)
 {
     m_Engine = new ElectricEngine(k_MaxBatteryTime);
 }
Пример #2
0
 public FuelMotorCycle(eMotorCycleLicenseType i_LicenseType, int i_EngineCapacity,
                       string i_LicenseNumber, string i_Model /*, i_EnergyLeftPercentage*/)
     : base(i_LicenseType, i_EngineCapacity, i_LicenseNumber, i_Model,
            k_NumOfWheels, k_MaxWheelPressure /*, i_EnergyLeftPercentage*/)
 {
     m_Engine = new FuelEngine(k_FuelType, k_FuelTankCapacity);
 }
Пример #3
0
 public MotorCycle(eMotorCycleLicenseType i_LicenseType, int i_EngineCapacity,
                   string i_LicenseNumber, string i_Model, int i_NumOfWheels,
                   float i_MaxWheelPressure /*, i_EnergyLeftPercentage*/)
     : base(i_LicenseNumber, i_Model, i_NumOfWheels,
            i_MaxWheelPressure /*, i_EnergyLeftPercentage*/)
 {
     m_EngineCapacity = i_EngineCapacity;
     m_LicenseType    = i_LicenseType;
 }