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);
}
}
}
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);
}
}
}
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);
}
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);
}
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");
}
Aggregations