use of pcgen.cdom.facet.analysis.NonAbilityFacet in project pcgen by PCGen.
the class StatIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
DataSetID cid = DataSetID.getID();
id = CharID.getID(cid);
altid = CharID.getID(cid);
stat1 = BuildUtilities.createStat("Stat1", "Stat1");
stat2 = BuildUtilities.createStat("Stat2", "Stat2");
unlockedFacet = new UnlockedStatFacet();
lockFacet = new StatLockFacet();
lockFacet.setFormulaResolvingFacet(new FormulaResolvingFacet());
nonAbilityFacet = new NonAbilityFacet();
NonStatStatFacet nonStatStatFacet = new NonStatStatFacet();
nonAbilityFacet.setNonStatStatFacet(nonStatStatFacet);
NonStatToStatFacet nonStatToStatFacet = new NonStatToStatFacet();
nonAbilityFacet.setNonStatToStatFacet(nonStatToStatFacet);
rfacet = new RaceFacet();
tfacet = new TemplateFacet();
CDOMObjectConsolidationFacet cdomFacet = new CDOMObjectConsolidationFacet();
CDOMObjectBridge bridge = new CDOMObjectBridge();
cdomFacet.setBridgeFacet(bridge);
rfacet.addDataFacetChangeListener(cdomFacet);
tfacet.addDataFacetChangeListener(cdomFacet);
cdomFacet.addDataFacetChangeListener(lockFacet);
cdomFacet.addDataFacetChangeListener(unlockedFacet);
cdomFacet.addDataFacetChangeListener(nonStatStatFacet);
cdomFacet.addDataFacetChangeListener(nonStatToStatFacet);
}
Aggregations