コード例 #1
0
 public AttractMode()
 {
     _log.Info("Attract Mode Started");
     DisplayManager.PlaySequence(DisplayConstants.Modes.AttractMode.ATTRACT); //send high scores
     DisplayManager.OnAnimationCompleted += new DisplayEventHandler(DisplayManager_OnAnimationCompleted);
     SwitchManager.RegisterSwitchHandler(handleSwitchChanges);
     SwitchManager.Reset();
 }
コード例 #2
0
            public NormalPlayMode()
            {
                _log.Info("Normal Play Mode Started");
                _instance.ResetForNewPlayer();

                DisplayManager.OnAnimationCompleted += new DisplayEventHandler(DisplayManager_OnAnimationCompleted);
                SwitchManager.RegisterSwitchHandler(handleSwitchChanges);
            }
コード例 #3
0
            public TrophyRoomMode()
            {
                _log.Info("Trophy Room Mode Started");
                DisplayManager.OnAnimationCompleted += new DisplayEventHandler(DisplayManager_OnAnimationCompleted);
                SwitchManager.RegisterSwitchHandler(handleSwitchChanges);

                //Rotate Playfield to CenterScoop position
                SwitchManager.RotateStage(SwitchConstants.StagePositions.TrophyScoop);
                SwitchManager.RotateCross(false);

                //Play "Collect Trophy" instructional video
                DisplayManager.PlayCutScene(DisplayConstants.CutScenes.ActiveGameMode.COLLECTTROPHY);
                LightManager.PlaySequence(LightingConstants.Lfx.CollectTrophySlow);

                _collectBonusTimer = new Timer(new TimerCallback(collectBonusTimerHandler),
                                               null, 1000, 1000); //ticks every second
                _timeStarted = new System.Diagnostics.Stopwatch();
                _timeStarted.Start();
            }
コード例 #4
0
 public TestMode()
 {
     //DisplayManager.PlaySequence(DisplayConstants.ATTRACT); //send high scores
     SwitchManager.RegisterSwitchHandler(handleSwitchChanges);
 }