コード例 #1
0
        public void setUP()
        {
            Console.WriteLine("CharakterTestsAbstract");

            charakter        = new Charakter();
            managmentFeature = new ManagmentFeature();

            setUP_Talente();
            setUP_Features();
            setUP_BasicValues();
            setUP_Attribute();
            setUP_Energien();
            setUP_Advanced();
            setUP_Andere();
        }
コード例 #2
0
        public void setUP()
        {
            featureManagment = new ManagmentFeature();

            feature1 = new Feature("Feature1", "Description1", "0", "0", DSA_FEATURES.VORTEIL);
            Feature feature2 = new Feature("Feature2", "Description1", "0", "0", DSA_FEATURES.VORTEIL);
            Feature feature3 = new Feature("Feature3", "Description1", "0", "0", DSA_FEATURES.VORTEIL);
            Feature feature4 = new Feature("Feature4", "Description1", "0", "0", DSA_FEATURES.VORTEIL);

            feature5 = new Feature("Feature5", "Description1", "0", "0", DSA_FEATURES.NACHTEIL);
            Feature feature6 = new Feature("Feature6", "Description1", "0", "0", DSA_FEATURES.NACHTEIL);

            talent1 = new TalentCrafting("TestTalent", new List <DSA_ATTRIBUTE>(), "BE", new List <TalentDeviate>(), new List <TalentRequirement>());

            feature3.setAttributeBonus(DSA_ATTRIBUTE.CH, 5);
            feature6.setAttributeBonus(DSA_ATTRIBUTE.CH, 2);

            feature4.setAdvancedValues(DSA_ADVANCEDVALUES.FERNKAMPF_BASIS, 5);

            feature1.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 10);
            feature2.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 2);
            feature3.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 3);
            feature4.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 8);
            feature5.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 10);
            feature6.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 10);

            feature1.addTalent(talent1, 10);
            feature3.addTalent(talent1, 10);

            featureManagment.addFeature(feature1, 1);
            featureManagment.addFeature(feature2, 2);
            featureManagment.addFeature(feature3, 3);
            featureManagment.addFeature(feature4, 4);
            featureManagment.addFeature(feature5, 5);
            featureManagment.addFeature(feature6, 6);
        }