Beispiel #1
0
        internal List <TalentRequirement> generateTestRequirements()
        {
            List <TalentRequirement> requirementList = new List <TalentRequirement>(0);

            for (int i = 0; i < random.Next(maxCountRequiremnts); i++)
            {
                String name = "Requirement_Talent" + RandomGenerator.generateName();
                List <DSA_ATTRIBUTE> at1 = RandomGenerator.generateAttributList();
                String be = "Be_Deviate_" + RandomGenerator.generateName();

                InterfaceTalent   DeviateTestTalent = new TalentCrafting(name, at1, be, new List <TalentDeviate>(0), new List <TalentRequirement>(0));
                TalentRequirement talentRequirement = new TalentRequirement(name, random.Next(maxRequirementTaW), maxRequirmentTaWat);

                requirementList.Add(talentRequirement);
                charakter.addTalent(DeviateTestTalent);
            }

            return(requirementList);
        }
 public void setUP()
 {
     requirement_withoutNeedAT = new TalentRequirement(TalentName, value);
     requirement_withNeedAT    = new TalentRequirement(TalentName, value, needAt);
 }