Ejemplo n.º 1
0
 public Bike(VehicleFactory.eVehicleType i_VehicleType, string i_ModelName, string i_LicenseNumber, Tire[] i_Tires, Engine i_Engine, float i_EnergyPercentageLeft, string i_TireManufactureName, float i_TireCurrentAirPressure, eLicenseType i_LicenseType, float i_EngineCapacity)
     : base(i_VehicleType, i_ModelName, i_LicenseNumber, i_Tires, i_Engine, i_EnergyPercentageLeft, i_TireManufactureName, k_MaxAirPressure, i_TireCurrentAirPressure)
 {
     r_LicenseType    = i_LicenseType;
     r_EngineCapacity = i_EngineCapacity;
 }
Ejemplo n.º 2
0
 protected Vehicle(VehicleFactory.eVehicleType i_VehicleType, string i_ModelName, string i_LicenseNumber, Tire[] i_Tires, Engine i_Engine, float i_EnergyPercentageLeft, string i_TireManufactureName, float i_MaxAirPressure, float i_TireCurrentAirPressure)
 {
     r_VehicleType        = i_VehicleType;
     r_ModelName          = i_ModelName;
     r_LicenseNumber      = i_LicenseNumber;
     r_Tires              = i_Tires;
     r_Engine             = i_Engine;
     EnergyPercentageLeft = i_EnergyPercentageLeft;
     for (int currentTire = 0; currentTire < i_Tires.Length; currentTire++)
     {
         Tires[currentTire] = new Tire(i_TireManufactureName, i_MaxAirPressure, i_TireCurrentAirPressure);
     }
 }