Search in sources :

Example 1 with StatLockFacet

use of pcgen.cdom.facet.analysis.StatLockFacet 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);
}
Also used : RaceFacet(pcgen.cdom.facet.model.RaceFacet) UnlockedStatFacet(pcgen.cdom.facet.analysis.UnlockedStatFacet) TemplateFacet(pcgen.cdom.facet.model.TemplateFacet) NonStatToStatFacet(pcgen.cdom.facet.analysis.NonStatToStatFacet) DataSetID(pcgen.cdom.enumeration.DataSetID) StatLockFacet(pcgen.cdom.facet.analysis.StatLockFacet) NonStatStatFacet(pcgen.cdom.facet.analysis.NonStatStatFacet) NonAbilityFacet(pcgen.cdom.facet.analysis.NonAbilityFacet) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DataSetID (pcgen.cdom.enumeration.DataSetID)1 NonAbilityFacet (pcgen.cdom.facet.analysis.NonAbilityFacet)1 NonStatStatFacet (pcgen.cdom.facet.analysis.NonStatStatFacet)1 NonStatToStatFacet (pcgen.cdom.facet.analysis.NonStatToStatFacet)1 StatLockFacet (pcgen.cdom.facet.analysis.StatLockFacet)1 UnlockedStatFacet (pcgen.cdom.facet.analysis.UnlockedStatFacet)1 RaceFacet (pcgen.cdom.facet.model.RaceFacet)1 TemplateFacet (pcgen.cdom.facet.model.TemplateFacet)1