Esempio n. 1
0
        public FrTrainDevice(TrainSoundManager soundManager,
		                      TrainHandleManager handleManager,
		                      TrainControlManager controlManager)
        {
            this.soundManager = soundManager;
            this.handleManager = handleManager;
            this.controlManager = controlManager;
        }
Esempio n. 2
0
        public ClosedSignal(TrainSoundManager soundManager,
		                     TrainHandleManager handleManager,
		                     TrainControlManager controlManager)
            : base(soundManager,handleManager,controlManager)
        {
            globalTime = new OpenBveApi.Runtime.Time(0);
            time = new OpenBveApi.Runtime.Time(0);
            this.reset();
        }
Esempio n. 3
0
        public KVB(TrainSoundManager soundManager,
		            TrainHandleManager handleManager,
		            TrainControlManager controlManager)
            : base(soundManager, handleManager, controlManager)
        {
            beepBeep = -1;
            enabled = false;
            newSpeedLimit = new Speed(-1);
            signalAspect = true;
        }
Esempio n. 4
0
        /// <summary>Is called when the plugin should initialize or reinitialize.</summary>
        /// <param name="mode">The mode of initialization.</param>
        public void Initialize(InitializationModes mode)
        {
            handleManager = new TrainHandleManager(trainSpecs);

            closedSignalDevice = new ClosedSignal(soundManager,handleManager, cabControlManager);
            vacma = new Vacma(soundManager,handleManager, cabControlManager);
            speedControl = new KVB(soundManager,handleManager,cabControlManager);

            speedControl.setParameters(new Speed(33.33), 400, 0.8, TrainTypes.V);
        }
Esempio n. 5
0
        public Vacma(TrainSoundManager soundManager,
		              TrainHandleManager handleManager,
		              TrainControlManager controlManager)
            : base(soundManager, handleManager, controlManager)
        {
            time = new Time(0);
            securityTest = false;
            hold = false;
            vacmaHorn = -1;
            vacmaRing = -1;
            applyBreak = false;
        }