use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class ClassListToken method allow.
@Override
public boolean allow(PlayerCharacter pc, Spell spell) {
ClassSpellList list = spelllist.get();
DataSetID datasetID = pc.getCharID().getDatasetID();
for (AvailableSpell availSpell : masterAvailableSpellFacet.getMatchingSpellsInList(list, datasetID, spell)) {
int level = availSpell.getLevel();
if (level >= 0 && allow(pc, level, "", spell, list)) {
return true;
}
}
return false;
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class DomainListToken method allow.
@Override
public boolean allow(PlayerCharacter pc, Spell spell) {
DomainSpellList list = spelllist.get();
DataSetID datasetID = pc.getCharID().getDatasetID();
for (AvailableSpell availSpell : masterAvailableSpellFacet.getMatchingSpellsInList(list, datasetID, spell)) {
int level = availSpell.getLevel();
if (level >= 0 && allow(pc, level, "", spell, list)) {
return true;
}
}
return false;
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class LocalAddedSkillCostFacetTest 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");
class3 = new PCClass();
class3.setName("Cl3");
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class ClassFacetTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
DataSetID cid = DataSetID.getID();
id = CharID.getID(cid);
altid = CharID.getID(cid);
facet.addDataFacetChangeListener(classListener);
facet.addLevelChangeListener(classListener);
}
use of pcgen.cdom.enumeration.DataSetID in project pcgen by PCGen.
the class GlobalAddedSkillCostFacetTest method setUp.
@Override
public void setUp() {
DataSetID cid = DataSetID.getID();
id = CharID.getID(cid);
altid = CharID.getID(cid);
source1 = new PCTemplate();
source1.setName("T1");
}
Aggregations