Beispiel #1
0
        public override void PlayNote(Note note)
        {
            var fluteNote = FluteNote.From(note);

            if (RequiresAction(fluteNote))
            {
                if (fluteNote.Key == FluteNote.Keys.None)
                {
                    PressNote(GuildWarsControls.EliteSkill);
                }
                else
                {
                    fluteNote = OptimizeNote(fluteNote);
                    PressNote(NoteMap[fluteNote.Key]);
                }
            }
        }
Beispiel #2
0
        public override void GoToOctave(Note note)
        {
            var fluteNote = FluteNote.From(note);

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

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