//-------------------------------------------------------------------------//
 //                                Constructor                              //
 //-------------------------------------------------------------------------//
 public GasMotorcycle(string i_ModelName, string i_LicenceNumber, List <string> i_WheelsInfo, float i_EnergyLeftPercent, Motorcycle i_InnerVehicleInfo)
     : base(i_ModelName, i_LicenceNumber, k_GasType, k_MaxGasCapasity, i_EnergyLeftPercent)
 {
     m_Motorcycle = i_InnerVehicleInfo;
     m_Motorcycle.AddWheels(i_WheelsInfo);
 }
Beispiel #2
0
 //-------------------------------------------------------------------------//
 //                                Constructor                              //
 //-------------------------------------------------------------------------//
 public ElectricMotorcycle(string i_ModelName, string i_LicenseNumber, List <string> i_WheelsInfo, float i_EnergyLeftPercent, Motorcycle i_InnerVehicleInfo) : base(i_ModelName, i_LicenseNumber, k_MaxBatteryTime, i_EnergyLeftPercent)
 {
     m_Motorcycle = i_InnerVehicleInfo;
     m_Motorcycle.AddWheels(i_WheelsInfo);
 }