예제 #1
0
 protected Vehicle(HoldVehicleParams i_Vehicle)
 {
     r_Engine = i_Vehicle.Engine;
     m_RemainingEnergyPercentage = r_Engine.GetRemainingEnergyPercentage();
     r_VehicleModel  = i_Vehicle.VehicleModel;
     r_LicensePlate  = i_Vehicle.LicensePlate;
     m_VehicleWheels = i_Vehicle.Wheels;
 }
예제 #2
0
 public void FillEnergy(eEngineEnergyTypes i_EngineType, float i_AmountToAdd)
 {
     try
     {
         r_Engine.FillEnergy(i_EngineType, i_AmountToAdd);
         m_RemainingEnergyPercentage = r_Engine.GetRemainingEnergyPercentage();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }