Search in sources :

Example 1 with DataSetID

use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.

the class GlobalToSkillCostFacet method dataRemoved.

@Override
public void dataRemoved(DataFacetChangeEvent<CharID, PCClass> dfce) {
    CharID id = dfce.getCharID();
    PCClass cl = dfce.getCDOMObject();
    DataSetID dsID = id.getDatasetID();
    for (Skill sk : masterUsableSkillFacet.getSet(dsID)) {
        remove(id, cl, SkillCost.CROSS_CLASS, sk, masterUsableSkillFacet);
    }
    for (SkillCost cost : globalSkillCostFacet.getScopes(id)) {
        for (Skill sk : globalSkillCostFacet.getSet(id, cost)) {
            remove(id, cl, cost, sk, globalSkillCostFacet);
        }
    }
    for (SkillCost cost : globalAddedSkillCostFacet.getScopes(id)) {
        for (Skill sk : globalAddedSkillCostFacet.getSet(id, cost)) {
            remove(id, cl, cost, sk, globalAddedSkillCostFacet);
        }
    }
}
Also used : Skill(pcgen.core.Skill) SkillCost(pcgen.cdom.enumeration.SkillCost) DataSetID(pcgen.cdom.enumeration.DataSetID) PCClass(pcgen.core.PCClass) CharID(pcgen.cdom.enumeration.CharID)

Example 2 with DataSetID

use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.

the class GlobalToSkillCostFacet method dataAdded.

@Override
public void dataAdded(DataFacetChangeEvent<CharID, PCClass> dfce) {
    CharID id = dfce.getCharID();
    PCClass cl = dfce.getCDOMObject();
    DataSetID dsID = id.getDatasetID();
    for (Skill sk : masterUsableSkillFacet.getSet(dsID)) {
        add(id, cl, SkillCost.CROSS_CLASS, sk, masterUsableSkillFacet);
    }
    for (SkillCost cost : globalSkillCostFacet.getScopes(id)) {
        for (Skill sk : globalSkillCostFacet.getSet(id, cost)) {
            add(id, cl, cost, sk, globalSkillCostFacet);
        }
    }
    for (SkillCost cost : globalAddedSkillCostFacet.getScopes(id)) {
        for (Skill sk : globalAddedSkillCostFacet.getSet(id, cost)) {
            add(id, cl, cost, sk, globalAddedSkillCostFacet);
        }
    }
}
Also used : Skill(pcgen.core.Skill) SkillCost(pcgen.cdom.enumeration.SkillCost) DataSetID(pcgen.cdom.enumeration.DataSetID) PCClass(pcgen.core.PCClass) CharID(pcgen.cdom.enumeration.CharID)

Example 3 with DataSetID

use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.

the class RacialSubTypesFacetTest method setUp.

@Override
public void setUp() throws Exception {
    facet = new RacialSubTypesFacet();
    super.setUp();
    facet.setRaceFacet(rfacet);
    facet.setTemplateFacet(tfacet);
    DataSetID cid = DataSetID.getID();
    id = CharID.getID(cid);
    altid = CharID.getID(cid);
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID)

Example 4 with DataSetID

use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.

the class LegsFacetTest method setUp.

@Override
public void setUp() throws Exception {
    facet = new LegsFacet();
    super.setUp();
    facet.setRaceFacet(rfacet);
    facet.setTemplateFacet(tfacet);
    DataSetID cid = DataSetID.getID();
    id = CharID.getID(cid);
    altid = CharID.getID(cid);
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID)

Example 5 with DataSetID

use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.

the class LocalSkillCostFacetTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    DataSetID cid = DataSetID.getID();
    id = CharID.getID(cid);
    altid = CharID.getID(cid);
    class1 = new PCClass();
    class1.setName("Cl1");
    class2 = new PCClass();
    class2.setName("Cl2");
}
Also used : DataSetID(pcgen.cdom.enumeration.DataSetID) PCClass(pcgen.core.PCClass)

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