Пример #1
0
        public override void PlayNote(Note note)
        {
            var bassNote = BassNote.From(note);

            if (RequiresAction(bassNote))
            {
                if (bassNote.Key == BassNote.Keys.None)
                {
                    PressNote(GuildWarsControls.EliteSkill);
                }
                else
                {
                    bassNote = OptimizeNote(bassNote);
                    PressNote(NoteMap[bassNote.Key]);
                }
            }
        }
Пример #2
0
        public override void GoToOctave(Note note)
        {
            var bassNote = BassNote.From(note);

            if (RequiresAction(bassNote))
            {
                bassNote = OptimizeNote(bassNote);

                while (_currentOctave != bassNote.Octave)
                {
                    if (_currentOctave < bassNote.Octave)
                    {
                        IncreaseOctave();
                    }
                    else
                    {
                        DecreaseOctave();
                    }
                }
            }
        }