Search in sources :

Example 26 with DataSetID

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);
}
Also used : Ability(pcgen.core.Ability) CNAbility(pcgen.cdom.content.CNAbility) DataSetID(pcgen.cdom.enumeration.DataSetID) AbilityCategory(pcgen.core.AbilityCategory)

Example 27 with DataSetID

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);
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID)

Example 28 with DataSetID

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);
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID)

Example 29 with DataSetID

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);
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID) VariableLibrary(pcgen.base.formula.base.VariableLibrary)

Example 30 with DataSetID

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<>();
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID)

Aggregations

DataSetID (pcgen.cdom.enumeration.DataSetID)37 PCClass (pcgen.core.PCClass)5 AvailableSpell (pcgen.cdom.helper.AvailableSpell)3 Skill (pcgen.core.Skill)3 CharID (pcgen.cdom.enumeration.CharID)2 SkillCost (pcgen.cdom.enumeration.SkillCost)2 FormulaResolvingFacet (pcgen.cdom.facet.FormulaResolvingFacet)2 ClassSpellList (pcgen.cdom.list.ClassSpellList)2 DomainSpellList (pcgen.cdom.list.DomainSpellList)2 ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1 VariableLibrary (pcgen.base.formula.base.VariableLibrary)1 SplitFormulaSetup (pcgen.base.solver.SplitFormulaSetup)1 AssociatedPrereqObject (pcgen.cdom.base.AssociatedPrereqObject)1 CDOMList (pcgen.cdom.base.CDOMList)1 CDOMReference (pcgen.cdom.base.CDOMReference)1 MasterListInterface (pcgen.cdom.base.MasterListInterface)1 CNAbility (pcgen.cdom.content.CNAbility)1 NonAbilityFacet (pcgen.cdom.facet.analysis.NonAbilityFacet)1 NonStatStatFacet (pcgen.cdom.facet.analysis.NonStatStatFacet)1