Search in sources :

Example 1 with LanguageChooserFacade

use of pcgen.facade.core.LanguageChooserFacade in project pcgen by PCGen.

the class CharacterFacadeImpl method getLanguageChoosers.

@Override
public ListFacade<LanguageChooserFacade> getLanguageChoosers() {
    CNAbility cna = theCharacter.getBonusLanguageAbility();
    DefaultListFacade<LanguageChooserFacade> chooserList = new DefaultListFacade<>();
    chooserList.addElement(new LanguageChooserFacadeImpl(this, LanguageBundle.getString("in_sumLangBonus"), //$NON-NLS-1$
    cna));
    SkillFacade speakLangSkill = dataSet.getSpeakLanguageSkill();
    if (speakLangSkill != null) {
        chooserList.addElement(new LanguageChooserFacadeImpl(this, //$NON-NLS-1$
        LanguageBundle.getString("in_sumLangSkill"), (Skill) speakLangSkill));
    }
    return chooserList;
}
Also used : CNAbility(pcgen.cdom.content.CNAbility) LanguageChooserFacade(pcgen.facade.core.LanguageChooserFacade) Skill(pcgen.core.Skill) SkillFacade(pcgen.facade.core.SkillFacade) DefaultListFacade(pcgen.facade.util.DefaultListFacade)

Aggregations

CNAbility (pcgen.cdom.content.CNAbility)1 Skill (pcgen.core.Skill)1 LanguageChooserFacade (pcgen.facade.core.LanguageChooserFacade)1 SkillFacade (pcgen.facade.core.SkillFacade)1 DefaultListFacade (pcgen.facade.util.DefaultListFacade)1