Search in sources :

Example 11 with Load

use of pcgen.util.enumeration.Load in project pcgen by PCGen.

the class UnencumberedArmorFacetTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    CDOMObject cdo1 = new PCTemplate();
    cdo1.setName("Template1");
    CDOMObject cdo2 = new Race();
    cdo2.setName("Race1");
    Load st1 = Load.HEAVY;
    Load st2 = Load.MEDIUM;
    cdo1.put(ObjectKey.UNENCUMBERED_ARMOR, st1);
    cdo2.put(ObjectKey.UNENCUMBERED_ARMOR, st2);
    source = new CDOMObject[] { cdo1, cdo2 };
    target = new Load[] { st1, st2 };
}
Also used : Load(pcgen.util.enumeration.Load) CDOMObject(pcgen.cdom.base.CDOMObject) Race(pcgen.core.Race) PCTemplate(pcgen.core.PCTemplate)

Example 12 with Load

use of pcgen.util.enumeration.Load in project pcgen by PCGen.

the class UnencumberedLoadFacetTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    CDOMObject cdo1 = new PCTemplate();
    cdo1.setName("Template1");
    CDOMObject cdo2 = new Race();
    cdo2.setName("Race1");
    Load st1 = Load.HEAVY;
    Load st2 = Load.MEDIUM;
    cdo1.put(ObjectKey.UNENCUMBERED_LOAD, st1);
    cdo2.put(ObjectKey.UNENCUMBERED_LOAD, st2);
    source = new CDOMObject[] { cdo1, cdo2 };
    target = new Load[] { st1, st2 };
}
Also used : Load(pcgen.util.enumeration.Load) CDOMObject(pcgen.cdom.base.CDOMObject) Race(pcgen.core.Race) PCTemplate(pcgen.core.PCTemplate)

Aggregations

Load (pcgen.util.enumeration.Load)12 CDOMObject (pcgen.cdom.base.CDOMObject)4 StringTokenizer (java.util.StringTokenizer)3 PCTemplate (pcgen.core.PCTemplate)2 Race (pcgen.core.Race)2 Color (java.awt.Color)1 Font (java.awt.Font)1 IdentityList (pcgen.base.util.IdentityList)1 Ungranted (pcgen.cdom.base.Ungranted)1 ParseResult (pcgen.rules.persistence.token.ParseResult)1