Exemple #1
0
        private void DecreaseOctave()
        {
            switch (_octave)
            {
            case Bell2Note.Octaves.None:
                break;

            case Bell2Note.Octaves.Low:
                break;

            case Bell2Note.Octaves.High:
                _octave = Bell2Note.Octaves.Low;
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Exemple #2
0
        private void IncreaseOctave()
        {
            switch (CurrentOctave)
            {
            case Bell2Note.Octaves.Low:
                CurrentOctave = Bell2Note.Octaves.High;
                break;

            case Bell2Note.Octaves.High:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            PressKey(GuildWarsControls.EliteSkill, CurrentOctave.ToString());

            Thread.Sleep(OctaveTimeout);
        }
Exemple #3
0
        private void IncreaseOctave()
        {
            var noteType = InstrumentSkillType.IncreaseOctaveToHigh;

            switch (_currentOctave)
            {
            case Bell2Note.Octaves.Low:
                noteType       = InstrumentSkillType.IncreaseOctaveToHigh;
                _currentOctave = Bell2Note.Octaves.High;
                break;

            case Bell2Note.Octaves.High:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            _keyboard.Press(GuildWarsControls.EliteSkill);
            _keyboard.Release(GuildWarsControls.EliteSkill);

            Thread.Sleep(OctaveTimeout);
        }
Exemple #4
0
 public CachedSound Get(GuildWarsControls key, Bell2Note.Octaves octave)
 {
     return(Sound[Map[$"{key}{octave}"]]);
 }