Search in sources :

Example 6 with SkillFacade

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;
}
Also used : SkillFacade(pcgen.facade.core.SkillFacade)

Example 7 with SkillFacade

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;
}
Also used : BonusChangeFacet(pcgen.cdom.facet.BonusChangeFacet) SkillFacade(pcgen.facade.core.SkillFacade) SkillFacet(pcgen.cdom.facet.model.SkillFacet)

Aggregations

SkillFacade (pcgen.facade.core.SkillFacade)7 CNAbility (pcgen.cdom.content.CNAbility)2 BonusChangeFacet (pcgen.cdom.facet.BonusChangeFacet)2 SkillFacet (pcgen.cdom.facet.model.SkillFacet)2 Skill (pcgen.core.Skill)2 BorderLayout (java.awt.BorderLayout)1 Dimension (java.awt.Dimension)1 GridBagConstraints (java.awt.GridBagConstraints)1 GridBagLayout (java.awt.GridBagLayout)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 DefaultListCellRenderer (javax.swing.DefaultListCellRenderer)1 JPanel (javax.swing.JPanel)1 JScrollPane (javax.swing.JScrollPane)1 JSpinner (javax.swing.JSpinner)1 Language (pcgen.core.Language)1 AbilityFacade (pcgen.facade.core.AbilityFacade)1 CharacterFacade (pcgen.facade.core.CharacterFacade)1 ClassFacade (pcgen.facade.core.ClassFacade)1 DeityFacade (pcgen.facade.core.DeityFacade)1