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();
}
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 };
}
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<>();
}
Aggregations