Exemple #1
0
        public DieselEngine(DieselEngine copy, MSTSDieselLocomotive loco)
        {
            IdleRPM                 = copy.IdleRPM;
            MaxRPM                  = copy.MaxRPM;
            StartingRPM             = copy.StartingRPM;
            StartingConfirmationRPM = copy.StartingConfirmationRPM;
            ChangeUpRPMpS           = copy.ChangeUpRPMpS;
            ChangeDownRPMpS         = copy.ChangeDownRPMpS;
            RateOfChangeUpRPMpSS    = copy.RateOfChangeUpRPMpSS;
            RateOfChangeDownRPMpSS  = copy.RateOfChangeDownRPMpSS;
            MaximalPowerW           = copy.MaximalPowerW;
            initLevel               = copy.initLevel;
            DieselPowerTab          = new Interpolator(copy.DieselPowerTab);
            DieselConsumptionTab    = new Interpolator(copy.DieselConsumptionTab);
            ThrottleRPMTab          = new Interpolator(copy.ThrottleRPMTab);
            if (copy.DieselTorqueTab != null)
            {
                DieselTorqueTab = new Interpolator(copy.DieselTorqueTab);
            }
            DieselUsedPerHourAtMaxPowerL = copy.DieselUsedPerHourAtMaxPowerL;
            DieselUsedPerHourAtIdleL     = copy.DieselUsedPerHourAtIdleL;
            InitialExhaust          = copy.InitialExhaust;
            InitialMagnitude        = copy.InitialMagnitude;
            MaxExhaust              = copy.MaxExhaust;
            MaxMagnitude            = copy.MaxMagnitude;
            ExhaustParticles        = copy.ExhaustParticles;
            ExhaustColor            = copy.ExhaustColor;
            ExhaustSteadyColor      = copy.ExhaustSteadyColor;
            ExhaustTransientColor   = copy.ExhaustTransientColor;
            ExhaustDecelColor       = copy.ExhaustDecelColor;
            DieselMaxOilPressurePSI = copy.DieselMaxOilPressurePSI;
            DieselMinOilPressurePSI = copy.DieselMinOilPressurePSI;
            DieselMaxTemperatureDeg = copy.DieselMaxTemperatureDeg;

            if (copy.GearBox != null)
            {
                GearBox = new GearBox(copy.GearBox, this);
            }
            locomotive = loco;
        }
Exemple #2
0
 public void Add(DieselEngine de)
 {
     DEList.Add(de);
 }