use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class AbstractCNASEnforcingFacetTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
getFacet().addDataFacetChangeListener(listener);
CNAbilityFactory.reset();
DataSetID cid = DataSetID.getID();
id = CharID.getID(cid);
altid = CharID.getID(cid);
feat = new AbilityCategory();
feat.setName("FEAT");
fighterfeat = new AbilityCategory();
fighterfeat.setName("Fighter Feat");
fighterfeat.setAbilityCategory(CDOMDirectSingleRef.getRef(feat));
specialty = new AbilityCategory();
specialty.setName("Specialty");
nomult = new Ability();
nomult.setName("NoMult");
nomult.setCDOMCategory(feat);
multyes = new Ability();
multyes.setName("MultYes");
multyes.setCDOMCategory(feat);
multyes.put(ObjectKey.MULTIPLE_ALLOWED, true);
stackyes = new Ability();
stackyes.setName("MultYes");
stackyes.setCDOMCategory(feat);
stackyes.put(ObjectKey.MULTIPLE_ALLOWED, true);
stackyes.put(ObjectKey.STACKS, true);
othernomult = new Ability();
othernomult.setName("OtherNoMult");
othernomult.setCDOMCategory(feat);
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class AbstractListFacetTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
DataSetID cid = DataSetID.getID();
id = CharID.getID(cid);
altid = CharID.getID(cid);
getFacet().addDataFacetChangeListener(listener);
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class AbstractQualifiedListFacetTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
DataSetID cid = DataSetID.getID();
id = CharID.getID(cid);
altid = CharID.getID(cid);
getFacet().addDataFacetChangeListener(listener);
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class VariableLibraryFacet method initialize.
@Override
public synchronized void initialize(LoadContext context) {
DataSetID dsID = context.getDataSetID();
VariableLibrary varLibrary = context.getVariableContext().getFormulaSetup().getVariableLibrary();
set(dsID, varLibrary);
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class ReachFacetTest 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);
bonusInfo = new HashMap<>();
}
Aggregations