Exemple #1
0
        private List <InterfaceTalent> getTalentList()
        {
            List <InterfaceTalent> list    = new List <InterfaceTalent>();
            InterfaceTalent        talenta = new TalentCrafting("Crafting", RandomGenerator.generateAttributList(), "BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent        talentb = new TalentNature("Nature", RandomGenerator.generateAttributList(), "BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent        talentc = new TalentKnwoldage("Knowldage", RandomGenerator.generateAttributList(), "BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent        talentd = new TalentPhysical("Physical", RandomGenerator.generateAttributList(), "BE", new List <TalentDeviate>(), new List <TalentRequirement>());

            list.Add(talenta);
            list.Add(talentb);
            list.Add(talentc);
            list.Add(talentd);

            return(list);
        }
        public override List <InterfaceTalent> getTalentList()
        {
            List <InterfaceTalent> list = new List <InterfaceTalent>(0);

            InterfaceTalent talent01 = new TalentCrafting("CraftingTalent01", RandomGenerator.generateAttributList(), "Crafting_BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent talent02 = new TalentKnwoldage("TalentKnowldage", RandomGenerator.generateAttributList(), "Crafting_BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent talent03 = new TalentPhysical("TalentPhysical1", RandomGenerator.generateAttributList(), "Crafting_BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent talent04 = new TalentPhysical("TalentPhysical2", RandomGenerator.generateAttributList(), "Crafting_BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent talent05 = new GiftTalent("GiftTalent", RandomGenerator.generateAttributList());
            InterfaceTalent talent06 = new TalentClose("TalentClose", "BE_Close", new List <TalentDeviate>(), DSA_ADVANCEDVALUES.ATTACKE_BASIS, true);
            InterfaceTalent talent07 = new TalentCrafting("CraftingTalent02", RandomGenerator.generateAttributList(), "Crafting_BE", new List <TalentDeviate>(), new List <TalentRequirement>());
            InterfaceTalent talent08 = new TalentWeaponless("TalentClose01", "BE_Close", new List <TalentDeviate>(), DSA_ADVANCEDVALUES.ATTACKE_BASIS, true);

            list.Add(talent01);
            list.Add(talent02);
            list.Add(talent03);
            list.Add(talent04);
            list.Add(talent05);
            list.Add(talent06);
            list.Add(talent07);
            list.Add(talent08);

            return(list);
        }
Exemple #3
0
        private static ITalent CreateTalent(string contentType, Guid guid = new Guid(), List <CharakterAttribut> probe = null, int orginalPos = -1)
        {
            ITalent talent = null;

            contentType = contentType.Trim();

            if (guid == new Guid() || guid == null)
            {
                guid = guid.GenerateNextGuid(talentGuids);
                talentGuids.Add(guid);
            }

            if (contentType == nameof(TalentWeaponless))
            {
                talent = new TalentWeaponless(guid);
            }
            else if (contentType == nameof(TalentClose))
            {
                talent = new TalentClose(guid);
            }
            else if (contentType == nameof(TalentRange))
            {
                talent = new TalentRange(guid);
            }
            else if (contentType == nameof(TalentCrafting))
            {
                talent = new TalentCrafting(guid, probe);
            }
            else if (contentType == nameof(TalentKnowldage))
            {
                talent = new TalentKnowldage(guid, probe);
            }
            else if (contentType == nameof(TalentNature))
            {
                talent = new TalentNature(guid, probe);
            }
            else if (contentType == nameof(TalentPhysical))
            {
                talent = new TalentPhysical(guid, probe);
            }
            else if (contentType == nameof(TalentSocial))
            {
                talent = new TalentSocial(guid, probe);
            }
            else if (contentType == nameof(TalentSpeaking) || contentType == "TalentLanguage")
            {
                //TalentLanguage ist ein Relikt das aber vorhanden sein muss damit man alte Save dateien Laden kann
                talent = new TalentSpeaking(guid);
            }
            else if (contentType == nameof(TalentWriting))
            {
                talent = new TalentWriting(guid);
            }
            else
            {
                throw new TalentException(
                          error: ErrorCode.Error,
                          message: Resources.ErrorUnknownTalentType);
            }
            talent.OrginalPosition = orginalPos;
            return(talent);
        }