Пример #1
0
 public CoefficientTracker(int beatsCount, float delta, TouchSequenceMatchStrategy strategy)
 {
     _beatsCount = beatsCount;
     _delta = delta;
     _strategy = strategy;
     _coefficientsHistory = new Queue<float>(beatsCount);
 }
Пример #2
0
        public void SwitchBossModeOn()
        {
            _rhytmEngine.PatternGenerator =
                new TimeSequenceBeatPatternGenerator(
                    _combinationToKillBoss.Select(entry => entry.MilisecondsBefore).ToList());

            _strategy = new TouchSequenceMatchStrategy(_gameState,
                                                             _combinationToKillBoss.Select(
                                                                 entry => entry.Button).ToList());

            _strategy.Matched += (o, e) => UpdateAfterBeat();
            _strategy.Failed += (o, e) => UpdateAfterBeat();

            //_trackers.Add(GetUseShieldsTracker());
            _trackers.Add(GetShootTracker());
            _gameState.Combo.StopSound();
            _inputHandler.MatchStrategy = _strategy;
        }
Пример #3
0
 public void ApplyTouchSequenceMathchingStrategy()
 {
     var strategy = new TouchSequenceMatchStrategy(GameState, Enumerable.Repeat(ButtonType.Left, 123).ToList());
     _inputHandler.MatchStrategy = strategy;
 }