use of pcgen.facade.core.SkillFacade in project pcgen by PCGen.
the class DataSet method getSpeakLanguageSkill.
@Override
public SkillFacade getSpeakLanguageSkill() {
if (speakLanguageSkill != null) {
return speakLanguageSkill;
}
for (SkillFacade aSkillFacade : skills) {
Skill aSkill = (Skill) aSkillFacade;
ChooseInformation<?> chooseInfo = aSkill.get(ObjectKey.CHOOSE_INFO);
if ((chooseInfo != null) && "LANG".equals(chooseInfo.getName())) {
speakLanguageSkill = aSkillFacade;
}
}
return speakLanguageSkill;
}
use of pcgen.facade.core.SkillFacade in project pcgen by PCGen.
the class CharacterLevelsFacadeImpl method closeCharacter.
/**
* Tidy up character listeners when closing the character.
*/
protected void closeCharacter() {
SkillFacet skillFacet = FacetLibrary.getFacet(SkillFacet.class);
skillFacet.removeDataFacetChangeListener(this);
BonusChangeFacet bcf = FacetLibrary.getFacet(BonusChangeFacet.class);
for (SkillFacade skillFacade : dataSetFacade.getSkills()) {
bcf.removeBonusChangeListener(this, "SKILLRANK", skillFacade.getKeyName().toUpperCase());
}
theCharacter = null;
charDisplay = null;
charID = null;
}
Aggregations