Search in sources :

Example 1 with FormulaResolvingFacet

use of pcgen.cdom.facet.FormulaResolvingFacet in project pcgen by PCGen.

the class SizeFacetTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    DataSetID cid = DataSetID.getID();
    id = CharID.getID(cid);
    altid = CharID.getID(cid);
    facet = getMockFacet();
    facet.setRaceFacet(rfacet);
    facet.setTemplateFacet(tfacet);
    facet.setFormulaResolvingFacet(new FormulaResolvingFacet());
    bonusInfo = new HashMap<>();
    staticSetUp();
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID) FormulaResolvingFacet(pcgen.cdom.facet.FormulaResolvingFacet)

Example 2 with FormulaResolvingFacet

use of pcgen.cdom.facet.FormulaResolvingFacet in project pcgen by PCGen.

the class StatLockFacetTest method setUp.

@Override
public void setUp() throws Exception {
    facet = new StatLockFacet();
    super.setUp();
    facet.setFormulaResolvingFacet(new FormulaResolvingFacet());
    CDOMObject cdo1 = new PCTemplate();
    cdo1.setName("Templ");
    CDOMObject cdo2 = new Race();
    cdo2.setName("Race");
    PCStat pcs1 = new PCStat();
    pcs1.setName("Stat1");
    PCStat pcs2 = new PCStat();
    pcs2.setName("Stat2");
    StatLock st1 = new StatLock(CDOMDirectSingleRef.getRef(pcs1), FormulaFactory.getFormulaFor(4));
    StatLock st2 = new StatLock(CDOMDirectSingleRef.getRef(pcs2), FormulaFactory.getFormulaFor(2));
    cdo1.addToListFor(ListKey.STAT_LOCKS, st1);
    cdo2.addToListFor(ListKey.STAT_LOCKS, st2);
    source = new CDOMObject[] { cdo1, cdo2 };
    target = new StatLock[] { st1, st2 };
}
Also used : CDOMObject(pcgen.cdom.base.CDOMObject) Race(pcgen.core.Race) PCTemplate(pcgen.core.PCTemplate) PCStat(pcgen.core.PCStat) FormulaResolvingFacet(pcgen.cdom.facet.FormulaResolvingFacet) StatLock(pcgen.cdom.helper.StatLock)

Example 3 with FormulaResolvingFacet

use of pcgen.cdom.facet.FormulaResolvingFacet in project pcgen by PCGen.

the class InitiativeFacetTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    DataSetID cid = DataSetID.getID();
    id = CharID.getID(cid);
    altid = CharID.getID(cid);
    facet = getMockFacet();
    facet.setFormulaResolvingFacet(new FormulaResolvingFacet());
    bonusInfo = new HashMap<>();
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID) FormulaResolvingFacet(pcgen.cdom.facet.FormulaResolvingFacet)

Aggregations

FormulaResolvingFacet (pcgen.cdom.facet.FormulaResolvingFacet)3 DataSetID (pcgen.cdom.enumeration.DataSetID)2 CDOMObject (pcgen.cdom.base.CDOMObject)1 StatLock (pcgen.cdom.helper.StatLock)1 PCStat (pcgen.core.PCStat)1 PCTemplate (pcgen.core.PCTemplate)1 Race (pcgen.core.Race)1