public static Grammar GenerateDemonHunterGrammar()
        {
            GrammarBuilder demonHunterGrammarBuilder = new GrammarBuilder();

            demonHunterGrammarBuilder.Append(GenerateHavocGrammar(), 0, 1);
            demonHunterGrammarBuilder.Append(GenerateVengeanceGrammar(), 0, 1);
            demonHunterGrammarBuilder.Append(GenerateBaseDemonHunterGrammar(), 0, 1);
            demonHunterGrammarBuilder.Append(GenericHotkeys.GenerateGenericChoices(), 0, 1);
            Grammar DHGrammar = new Grammar(demonHunterGrammarBuilder);

            return(DHGrammar);
        }
Exemplo n.º 2
0
        public static Grammar GenerateMageGrammar()
        {
            GrammarBuilder mageGrammarBuilder = new GrammarBuilder();

            mageGrammarBuilder.Append(GenerateArcaneGrammar(), 0, 1);
            mageGrammarBuilder.Append(GenerateFireGrammar(), 0, 1);
            mageGrammarBuilder.Append(GenerateFrostGrammar(), 0, 1);
            mageGrammarBuilder.Append(GenerateClassAbilityGrammar(), 0, 1);
            mageGrammarBuilder.Append(GenericHotkeys.GenerateGenericChoices(), 0, 1);
            Grammar mageGrammar = new Grammar(mageGrammarBuilder);

            return(mageGrammar);
        }
Exemplo n.º 3
0
        public static Grammar GenerateWarlockGrammar()
        {
            GrammarBuilder warlockGrammarBuilder = new GrammarBuilder();

            warlockGrammarBuilder.Append(GenerateClassAbilityGrammar(), 0, 1);
            warlockGrammarBuilder.Append(GenerateDestructionGrammar(), 0, 1);
            warlockGrammarBuilder.Append(GenerateAfflictionGrammar(), 0, 1);
            warlockGrammarBuilder.Append(GenerateDemonologyGrammar(), 0, 1);
            warlockGrammarBuilder.Append(GenericHotkeys.GenerateGenericChoices(), 0, 1);
            Grammar warlockGrammar = new Grammar(warlockGrammarBuilder);

            return(warlockGrammar);
        }
Exemplo n.º 4
0
        public Grammar GenerateGrammar()
        {
            GrammarBuilder classGrammar = new GrammarBuilder();

            classGrammar.Append(new Choices(classAbilityNames), 0, 1);

            classGrammar.Append(GenericHotkeys.GenerateGenericChoices(), 0, 1);

            foreach (string[] spec in classSpecialisationAbilityNames.Values)
            {
                classGrammar.Append(new Choices(spec), 0, 1);
            }

            return(new Grammar(classGrammar));
        }