Search in sources :

Example 1 with SkillFacet

use of pcgen.cdom.facet.model.SkillFacet in project pcgen by PCGen.

the class FacetInitialization method doInitialization.

private static void doInitialization() {
    doOtherInitialization();
    doBridges();
    TemplateFacet templateFacet = FacetLibrary.getFacet(TemplateFacet.class);
    ConditionalTemplateFacet conditionalTemplateFacet = FacetLibrary.getFacet(ConditionalTemplateFacet.class);
    RaceFacet raceFacet = FacetLibrary.getFacet(RaceFacet.class);
    ClassFacet classFacet = FacetLibrary.getFacet(ClassFacet.class);
    ClassLevelFacet classLevelFacet = FacetLibrary.getFacet(ClassLevelFacet.class);
    ExpandedCampaignFacet expandedCampaignFacet = FacetLibrary.getFacet(ExpandedCampaignFacet.class);
    EquipmentFacet equipmentFacet = FacetLibrary.getFacet(EquipmentFacet.class);
    EquippedEquipmentFacet equippedFacet = FacetLibrary.getFacet(EquippedEquipmentFacet.class);
    NaturalEquipmentFacet naturalEquipmentFacet = FacetLibrary.getFacet(NaturalEquipmentFacet.class);
    SourcedEquipmentFacet activeEquipmentFacet = FacetLibrary.getFacet(SourcedEquipmentFacet.class);
    ActiveEqModFacet activeEqModFacet = FacetLibrary.getFacet(ActiveEqModFacet.class);
    GlobalModifierFacet globalModifierFacet = FacetLibrary.getFacet(GlobalModifierFacet.class);
    AlignmentFacet alignmentFacet = FacetLibrary.getFacet(AlignmentFacet.class);
    BioSetFacet bioSetFacet = FacetLibrary.getFacet(BioSetFacet.class);
    BioSetTrackingFacet bioSetTrackingFacet = FacetLibrary.getFacet(BioSetTrackingFacet.class);
    CheckFacet checkFacet = FacetLibrary.getFacet(CheckFacet.class);
    DynamicFacet dynamicFacet = FacetLibrary.getFacet(DynamicFacet.class);
    DynamicConsolidationFacet dynamicConsolidationFacet = FacetLibrary.getFacet(DynamicConsolidationFacet.class);
    VarScopedFacet varScopedFacet = FacetLibrary.getFacet(VarScopedFacet.class);
    AutoLanguageFacet autoLangFacet = FacetLibrary.getFacet(AutoLanguageFacet.class);
    WeaponProfFacet weaponProfFacet = FacetLibrary.getFacet(WeaponProfFacet.class);
    LevelFacet levelFacet = FacetLibrary.getFacet(LevelFacet.class);
    SizeFacet sizeFacet = FacetLibrary.getFacet(SizeFacet.class);
    BonusChangeFacet bonusChangeFacet = FacetLibrary.getFacet(BonusChangeFacet.class);
    DeityFacet deityFacet = FacetLibrary.getFacet(DeityFacet.class);
    DomainFacet domainFacet = FacetLibrary.getFacet(DomainFacet.class);
    CompanionModFacet companionModFacet = FacetLibrary.getFacet(CompanionModFacet.class);
    StatFacet statFacet = FacetLibrary.getFacet(StatFacet.class);
    SkillFacet skillFacet = FacetLibrary.getFacet(SkillFacet.class);
    NaturalWeaponProfFacet nwpFacet = FacetLibrary.getFacet(NaturalWeaponProfFacet.class);
    UserEquipmentFacet userEquipmentFacet = FacetLibrary.getFacet(UserEquipmentFacet.class);
    NaturalWeaponFacet naturalWeaponFacet = FacetLibrary.getFacet(NaturalWeaponFacet.class);
    EquipSetFacet equipSetFacet = FacetLibrary.getFacet(EquipSetFacet.class);
    CDOMObjectConsolidationFacet cdomObjectFacet = FacetLibrary.getFacet(CDOMObjectConsolidationFacet.class);
    CDOMObjectSourceFacet cdomSourceFacet = FacetLibrary.getFacet(CDOMObjectSourceFacet.class);
    CharacterConsolidationFacet charObjectFacet = FacetLibrary.getFacet(CharacterConsolidationFacet.class);
    EquipmentConsolidationFacet eqObjectFacet = FacetLibrary.getFacet(EquipmentConsolidationFacet.class);
    GrantedAbilityFacet grantedAbilityFacet = FacetLibrary.getFacet(GrantedAbilityFacet.class);
    DirectAbilityFacet directAbilityFacet = FacetLibrary.getFacet(DirectAbilityFacet.class);
    DirectAbilityInputFacet directAbilityInputFacet = FacetLibrary.getFacet(DirectAbilityInputFacet.class);
    ConditionallyGrantedAbilityFacet cabFacet = FacetLibrary.getFacet(ConditionallyGrantedAbilityFacet.class);
    SimpleAbilityFacet simpleAbilityFacet = FacetLibrary.getFacet(SimpleAbilityFacet.class);
    AbilitySelectionApplication abilitySelectionApplication = FacetLibrary.getFacet(AbilitySelectionApplication.class);
    equipmentFacet.addDataFacetChangeListener(naturalEquipmentFacet);
    equippedFacet.addDataFacetChangeListener(activeEquipmentFacet);
    naturalEquipmentFacet.addDataFacetChangeListener(activeEquipmentFacet);
    activeEquipmentFacet.addDataFacetChangeListener(activeEqModFacet);
    nwpFacet.addDataFacetChangeListener(weaponProfFacet);
    dynamicFacet.addScopeFacetChangeListener(dynamicConsolidationFacet);
    charObjectFacet.addDataFacetChangeListener(naturalWeaponFacet);
    naturalWeaponFacet.addDataFacetChangeListener(equipmentFacet);
    naturalWeaponFacet.addDataFacetChangeListener(userEquipmentFacet);
    naturalWeaponFacet.addDataFacetChangeListener(equipSetFacet);
    classFacet.addLevelChangeListener(levelFacet);
    levelFacet.addLevelChangeListener(conditionalTemplateFacet);
    levelFacet.addLevelChangeListener(sizeFacet);
    grantedAbilityFacet.addDataFacetChangeListener(abilitySelectionApplication);
    grantedAbilityFacet.addDataFacetChangeListener(simpleAbilityFacet);
    directAbilityFacet.addDataFacetChangeListener(grantedAbilityFacet);
    directAbilityInputFacet.addDataFacetChangeListener(grantedAbilityFacet);
    cabFacet.addDataFacetChangeListener(grantedAbilityFacet);
    raceFacet.addDataFacetChangeListener(bioSetTrackingFacet);
    bonusChangeFacet.addBonusChangeListener(sizeFacet, "SIZEMOD", "NUMBER");
    //model done
    expandedCampaignFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    globalModifierFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    alignmentFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    bioSetFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    checkFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    classFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    deityFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    domainFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    raceFacet.addDataFacetChangeListener(charObjectFacet);
    sizeFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    skillFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    statFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    templateFacet.addDataFacetChangeListener(charObjectFacet);
    // weaponProfList is still just a list of Strings
    // results.addAll(getWeaponProfList());
    //model done
    classLevelFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    simpleAbilityFacet.addDataFacetChangeListener(charObjectFacet);
    //model done
    companionModFacet.addDataFacetChangeListener(charObjectFacet);
    activeEquipmentFacet.addDataFacetChangeListener(eqObjectFacet);
    activeEqModFacet.addDataFacetChangeListener(eqObjectFacet);
    eqObjectFacet.addDataFacetChangeListener(cdomObjectFacet);
    charObjectFacet.addDataFacetChangeListener(cdomObjectFacet);
    cdomObjectFacet.addDataFacetChangeListener(nwpFacet);
    cdomSourceFacet.addDataFacetChangeListener(autoLangFacet);
    charObjectFacet.addDataFacetChangeListener(varScopedFacet);
    //model done
    dynamicConsolidationFacet.addDataFacetChangeListener(varScopedFacet);
}
Also used : DynamicConsolidationFacet(pcgen.cdom.facet.model.DynamicConsolidationFacet) VarScopedFacet(pcgen.cdom.facet.model.VarScopedFacet) TemplateFacet(pcgen.cdom.facet.model.TemplateFacet) CompanionModFacet(pcgen.cdom.facet.model.CompanionModFacet) DomainFacet(pcgen.cdom.facet.model.DomainFacet) StatFacet(pcgen.cdom.facet.model.StatFacet) AlignmentFacet(pcgen.cdom.facet.model.AlignmentFacet) DynamicFacet(pcgen.cdom.facet.input.DynamicFacet) ActiveEqModFacet(pcgen.cdom.facet.model.ActiveEqModFacet) RaceFacet(pcgen.cdom.facet.model.RaceFacet) ClassFacet(pcgen.cdom.facet.model.ClassFacet) ClassLevelFacet(pcgen.cdom.facet.model.ClassLevelFacet) CheckFacet(pcgen.cdom.facet.model.CheckFacet) BioSetFacet(pcgen.cdom.facet.model.BioSetFacet) LevelFacet(pcgen.cdom.facet.analysis.LevelFacet) ClassLevelFacet(pcgen.cdom.facet.model.ClassLevelFacet) SizeFacet(pcgen.cdom.facet.model.SizeFacet) SimpleAbilityFacet(pcgen.cdom.facet.model.SimpleAbilityFacet) ExpandedCampaignFacet(pcgen.cdom.facet.model.ExpandedCampaignFacet) DeityFacet(pcgen.cdom.facet.model.DeityFacet) MasterUsableSkillFacet(pcgen.cdom.facet.input.MasterUsableSkillFacet) SkillFacet(pcgen.cdom.facet.model.SkillFacet)

Example 2 with SkillFacet

use of pcgen.cdom.facet.model.SkillFacet in project pcgen by PCGen.

the class AbstractSaveRestoreTest method setUpContext.

protected void setUpContext() throws PersistenceLayerException {
    ChooserFactory.pushChooserClassname(RandomChooser.class.getName());
    TokenRegistration.clearTokens();
    TokenRegistration.register(AUTO_LANG_TOKEN);
    TokenRegistration.register(ABILITY_VISIBLE_TOKEN);
    TokenRegistration.register(AUTO_TOKEN);
    TokenRegistration.register(CHOOSE_TOKEN);
    TokenRegistration.register(CHOOSE_LANG_TOKEN);
    TokenRegistration.register(ABILITY_MULT_TOKEN);
    TokenRegistration.register(EQUIP_TYPE_TOKEN);
    TokenRegistration.register(EQUIP_PROFICIENCY_TOKEN);
    TokenRegistration.register(LANGBONUS_PRIM);
    TokenRegistration.register(PC_QUAL);
    TokenRegistration.register(Feat.class);
    directAbilityFacet = FacetLibrary.getFacet(DirectAbilityFacet.class);
    activeEqModFacet = FacetLibrary.getFacet(ActiveEqModFacet.class);
    alignmentFacet = FacetLibrary.getFacet(AlignmentFacet.class);
    bioSetFacet = FacetLibrary.getFacet(BioSetFacet.class);
    checkFacet = FacetLibrary.getFacet(CheckFacet.class);
    classFacet = FacetLibrary.getFacet(ClassFacet.class);
    classLevelFacet = FacetLibrary.getFacet(ClassLevelFacet.class);
    companionModFacet = FacetLibrary.getFacet(CompanionModFacet.class);
    deityFacet = FacetLibrary.getFacet(DeityFacet.class);
    domainFacet = FacetLibrary.getFacet(DomainFacet.class);
    expandedCampaignFacet = FacetLibrary.getFacet(ExpandedCampaignFacet.class);
    languageFacet = FacetLibrary.getFacet(LanguageFacet.class);
    raceFacet = FacetLibrary.getFacet(RaceSelectionFacet.class);
    sizeFacet = FacetLibrary.getFacet(SizeFacet.class);
    skillFacet = FacetLibrary.getFacet(SkillFacet.class);
    statFacet = FacetLibrary.getFacet(StatFacet.class);
    templateFacet = FacetLibrary.getFacet(TemplateSelectionFacet.class);
    templateConsolidationFacet = FacetLibrary.getFacet(TemplateFacet.class);
    weaponProfFacet = FacetLibrary.getFacet(WeaponProfFacet.class);
    Globals.createEmptyRace();
    Globals.setUseGUI(false);
    Globals.emptyLists();
    GameMode gamemode = SettingsHandler.getGame();
    gamemode.clearLoadContext();
    str = BuildUtilities.createStat("Strength", "STR");
    str.put(VariableKey.getConstant("LOADSCORE"), FormulaFactory.getFormulaFor("STRSCORE"));
    str.put(VariableKey.getConstant("OFFHANDLIGHTBONUS"), FormulaFactory.getFormulaFor(2));
    dex = BuildUtilities.createStat("Dexterity", "DEX");
    con = BuildUtilities.createStat("Constitution", "CON");
    intel = BuildUtilities.createStat("Intelligence", "INT");
    wis = BuildUtilities.createStat("Wisdom", "WIS");
    cha = BuildUtilities.createStat("Charisma", "CHA");
    AbstractReferenceContext ref = Globals.getContext().getReferenceContext();
    lg = BuildUtilities.createAlignment("Lawful Good", "LG");
    ref.importObject(lg);
    ln = BuildUtilities.createAlignment("Lawful Neutral", "LN");
    ref.importObject(ln);
    le = BuildUtilities.createAlignment("Lawful Evil", "LE");
    ref.importObject(le);
    ng = BuildUtilities.createAlignment("Neutral Good", "NG");
    ref.importObject(ng);
    tn = BuildUtilities.createAlignment("True Neutral", "TN");
    ref.importObject(tn);
    ne = BuildUtilities.createAlignment("Neutral Evil", "NE");
    ref.importObject(ne);
    cg = BuildUtilities.createAlignment("Chaotic Good", "CG");
    ref.importObject(cg);
    cn = BuildUtilities.createAlignment("Chaotic Neutral", "CN");
    ref.importObject(cn);
    ce = BuildUtilities.createAlignment("Chaotic Evil", "CE");
    ref.importObject(ce);
    ref.importObject(BuildUtilities.createAlignment("None", "NONE"));
    ref.importObject(BuildUtilities.createAlignment("Deity's", "Deity"));
    ref.importObject(str);
    ref.importObject(dex);
    ref.importObject(con);
    ref.importObject(intel);
    ref.importObject(wis);
    ref.importObject(cha);
    fine = BuildUtilities.createSize("Fine", 0);
    diminutive = BuildUtilities.createSize("Diminutive", 1);
    tiny = BuildUtilities.createSize("Tiny", 2);
    small = BuildUtilities.createSize("Small", 3);
    medium = BuildUtilities.createSize("Medium", 4);
    medium.put(ObjectKey.IS_DEFAULT_SIZE, true);
    large = BuildUtilities.createSize("Large", 5);
    huge = BuildUtilities.createSize("Huge", 6);
    gargantuan = BuildUtilities.createSize("Gargantuan", 7);
    colossal = BuildUtilities.createSize("Colossal", 8);
    context = Globals.getContext();
    create(Language.class, "Common");
    human = create(Race.class, "Human");
    BuildUtilities.createFact(context, "ClassType", PCClass.class);
    FactDefinition<?, String> fd = BuildUtilities.createFact(context, "SpellType", PCClass.class);
    fd.setSelectable(true);
    context.getReferenceContext().importObject(AbilityCategory.FEAT);
    SourceFileLoader.createLangBonusObject(Globals.getContext());
    ChooserFactory.setDelegate(new MockUIDelegate());
}
Also used : AbstractReferenceContext(pcgen.rules.context.AbstractReferenceContext) TemplateFacet(pcgen.cdom.facet.model.TemplateFacet) MockUIDelegate(pcgen.gui2.facade.MockUIDelegate) RandomChooser(pcgen.util.chooser.RandomChooser) CompanionModFacet(pcgen.cdom.facet.model.CompanionModFacet) DomainFacet(pcgen.cdom.facet.model.DomainFacet) StatFacet(pcgen.cdom.facet.model.StatFacet) AlignmentFacet(pcgen.cdom.facet.model.AlignmentFacet) Race(pcgen.core.Race) ActiveEqModFacet(pcgen.cdom.facet.model.ActiveEqModFacet) TemplateSelectionFacet(pcgen.cdom.facet.TemplateSelectionFacet) ClassFacet(pcgen.cdom.facet.model.ClassFacet) ClassLevelFacet(pcgen.cdom.facet.model.ClassLevelFacet) CheckFacet(pcgen.cdom.facet.model.CheckFacet) BioSetFacet(pcgen.cdom.facet.model.BioSetFacet) RaceSelectionFacet(pcgen.cdom.facet.RaceSelectionFacet) GameMode(pcgen.core.GameMode) SizeFacet(pcgen.cdom.facet.model.SizeFacet) ExpandedCampaignFacet(pcgen.cdom.facet.model.ExpandedCampaignFacet) DeityFacet(pcgen.cdom.facet.model.DeityFacet) WeaponProfFacet(pcgen.cdom.facet.WeaponProfFacet) DirectAbilityFacet(pcgen.cdom.facet.DirectAbilityFacet) LanguageFacet(pcgen.cdom.facet.model.LanguageFacet) SkillFacet(pcgen.cdom.facet.model.SkillFacet)

Example 3 with SkillFacet

use of pcgen.cdom.facet.model.SkillFacet in project pcgen by PCGen.

the class CharacterLevelsFacadeImpl method initForCharacter.

/**
	 * Initialise the instance for the current character. 
	 */
private void initForCharacter() {
    classLevels = new ArrayList<>();
    charLevels = new ArrayList<>();
    refreshClassList();
    charID = theCharacter.getCharID();
    SkillFacet skillFacet = FacetLibrary.getFacet(SkillFacet.class);
    skillFacet.addDataFacetChangeListener(this);
    BonusChangeFacet bcf = FacetLibrary.getFacet(BonusChangeFacet.class);
    for (SkillFacade skillFacade : dataSetFacade.getSkills()) {
        bcf.addBonusChangeListener(this, "SKILLRANK", skillFacade.getKeyName().toUpperCase());
    }
}
Also used : BonusChangeFacet(pcgen.cdom.facet.BonusChangeFacet) SkillFacade(pcgen.facade.core.SkillFacade) SkillFacet(pcgen.cdom.facet.model.SkillFacet)

Example 4 with SkillFacet

use of pcgen.cdom.facet.model.SkillFacet in project pcgen by PCGen.

the class AbstractTokenModelTest method setUpContext.

protected void setUpContext() throws PersistenceLayerException {
    ChooserFactory.pushChooserClassname(RandomChooser.class.getName());
    TokenRegistration.clearTokens();
    TokenRegistration.register(AUTO_LANG_TOKEN);
    TokenRegistration.register(ABILITY_VISIBLE_TOKEN);
    TokenRegistration.register(AUTO_TOKEN);
    TokenRegistration.register(CHOOSE_TOKEN);
    TokenRegistration.register(CHOOSE_LANG_TOKEN);
    TokenRegistration.register(ABILITY_MULT_TOKEN);
    TokenRegistration.register(EQUIP_TYPE_TOKEN);
    TokenRegistration.register(EQUIP_PROFICIENCY_TOKEN);
    TokenRegistration.register(LANGBONUS_PRIM);
    TokenRegistration.register(PC_QUAL);
    TokenRegistration.register(getToken());
    TokenRegistration.register(plugin.bonustokens.Feat.class);
    directAbilityFacet = FacetLibrary.getFacet(DirectAbilityFacet.class);
    activeEqModFacet = FacetLibrary.getFacet(ActiveEqModFacet.class);
    alignmentFacet = FacetLibrary.getFacet(AlignmentFacet.class);
    bioSetFacet = FacetLibrary.getFacet(BioSetFacet.class);
    checkFacet = FacetLibrary.getFacet(CheckFacet.class);
    classFacet = FacetLibrary.getFacet(ClassFacet.class);
    classLevelFacet = FacetLibrary.getFacet(ClassLevelFacet.class);
    companionModFacet = FacetLibrary.getFacet(CompanionModFacet.class);
    deityFacet = FacetLibrary.getFacet(DeityFacet.class);
    domainFacet = FacetLibrary.getFacet(DomainFacet.class);
    expandedCampaignFacet = FacetLibrary.getFacet(ExpandedCampaignFacet.class);
    languageFacet = FacetLibrary.getFacet(LanguageFacet.class);
    raceFacet = FacetLibrary.getFacet(RaceInputFacet.class);
    sizeFacet = FacetLibrary.getFacet(SizeFacet.class);
    skillFacet = FacetLibrary.getFacet(SkillFacet.class);
    statFacet = FacetLibrary.getFacet(StatFacet.class);
    templateInputFacet = FacetLibrary.getFacet(TemplateInputFacet.class);
    templateConsolidationFacet = FacetLibrary.getFacet(TemplateFacet.class);
    weaponProfModelFacet = FacetLibrary.getFacet(WeaponProfModelFacet.class);
    Globals.createEmptyRace();
    Globals.setUseGUI(false);
    Globals.emptyLists();
    GameMode gamemode = SettingsHandler.getGame();
    gamemode.clearLoadContext();
    str = BuildUtilities.createStat("Strength", "STR");
    str.put(VariableKey.getConstant("LOADSCORE"), FormulaFactory.getFormulaFor("STRSCORE"));
    str.put(VariableKey.getConstant("OFFHANDLIGHTBONUS"), FormulaFactory.getFormulaFor(2));
    dex = BuildUtilities.createStat("Dexterity", "DEX");
    PCStat con = BuildUtilities.createStat("Constitution", "CON");
    intel = BuildUtilities.createStat("Intelligence", "INT");
    wis = BuildUtilities.createStat("Wisdom", "WIS");
    cha = BuildUtilities.createStat("Charisma", "CHA");
    AbstractReferenceContext ref = Globals.getContext().getReferenceContext();
    lg = BuildUtilities.createAlignment("Lawful Good", "LG");
    ref.importObject(lg);
    ln = BuildUtilities.createAlignment("Lawful Neutral", "LN");
    ref.importObject(ln);
    le = BuildUtilities.createAlignment("Lawful Evil", "LE");
    ref.importObject(le);
    ng = BuildUtilities.createAlignment("Neutral Good", "NG");
    ref.importObject(ng);
    tn = BuildUtilities.createAlignment("True Neutral", "TN");
    ref.importObject(tn);
    ne = BuildUtilities.createAlignment("Neutral Evil", "NE");
    ref.importObject(ne);
    cg = BuildUtilities.createAlignment("Chaotic Good", "CG");
    ref.importObject(cg);
    cn = BuildUtilities.createAlignment("Chaotic Neutral", "CN");
    ref.importObject(cn);
    ce = BuildUtilities.createAlignment("Chaotic Evil", "CE");
    ref.importObject(ce);
    ref.importObject(BuildUtilities.createAlignment("None", "NONE"));
    ref.importObject(BuildUtilities.createAlignment("Deity's", "Deity"));
    gamemode.setBonusFeatLevels("3|3");
    SettingsHandler.setGame("3.5");
    ref.importObject(str);
    ref.importObject(dex);
    ref.importObject(con);
    ref.importObject(intel);
    ref.importObject(wis);
    ref.importObject(cha);
    fine = BuildUtilities.createSize("Fine", 0);
    diminutive = BuildUtilities.createSize("Diminutive", 1);
    tiny = BuildUtilities.createSize("Tiny", 2);
    small = BuildUtilities.createSize("Small", 3);
    medium = BuildUtilities.createSize("Medium", 4);
    medium.put(ObjectKey.IS_DEFAULT_SIZE, true);
    large = BuildUtilities.createSize("Large", 5);
    huge = BuildUtilities.createSize("Huge", 6);
    gargantuan = BuildUtilities.createSize("Gargantuan", 7);
    colossal = BuildUtilities.createSize("Colossal", 8);
    context = Globals.getContext();
    create(Language.class, "Common");
    BuildUtilities.createFact(context, "ClassType", PCClass.class);
    FactDefinition<?, String> fd = BuildUtilities.createFact(context, "SpellType", PCClass.class);
    fd.setSelectable(true);
    context.getReferenceContext().importObject(AbilityCategory.FEAT);
    SourceFileLoader.createLangBonusObject(Globals.getContext());
}
Also used : AbstractReferenceContext(pcgen.rules.context.AbstractReferenceContext) TemplateFacet(pcgen.cdom.facet.model.TemplateFacet) RandomChooser(pcgen.util.chooser.RandomChooser) CompanionModFacet(pcgen.cdom.facet.model.CompanionModFacet) DomainFacet(pcgen.cdom.facet.model.DomainFacet) StatFacet(pcgen.cdom.facet.model.StatFacet) AlignmentFacet(pcgen.cdom.facet.model.AlignmentFacet) ActiveEqModFacet(pcgen.cdom.facet.model.ActiveEqModFacet) ClassFacet(pcgen.cdom.facet.model.ClassFacet) WeaponProfModelFacet(pcgen.cdom.facet.model.WeaponProfModelFacet) ClassLevelFacet(pcgen.cdom.facet.model.ClassLevelFacet) CheckFacet(pcgen.cdom.facet.model.CheckFacet) BioSetFacet(pcgen.cdom.facet.model.BioSetFacet) GameMode(pcgen.core.GameMode) RaceInputFacet(pcgen.cdom.facet.input.RaceInputFacet) SizeFacet(pcgen.cdom.facet.model.SizeFacet) ExpandedCampaignFacet(pcgen.cdom.facet.model.ExpandedCampaignFacet) DeityFacet(pcgen.cdom.facet.model.DeityFacet) DirectAbilityFacet(pcgen.cdom.facet.DirectAbilityFacet) TemplateInputFacet(pcgen.cdom.facet.input.TemplateInputFacet) PCStat(pcgen.core.PCStat) LanguageFacet(pcgen.cdom.facet.model.LanguageFacet) SkillFacet(pcgen.cdom.facet.model.SkillFacet)

Example 5 with SkillFacet

use of pcgen.cdom.facet.model.SkillFacet 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

SkillFacet (pcgen.cdom.facet.model.SkillFacet)5 ActiveEqModFacet (pcgen.cdom.facet.model.ActiveEqModFacet)3 AlignmentFacet (pcgen.cdom.facet.model.AlignmentFacet)3 BioSetFacet (pcgen.cdom.facet.model.BioSetFacet)3 CheckFacet (pcgen.cdom.facet.model.CheckFacet)3 ClassFacet (pcgen.cdom.facet.model.ClassFacet)3 ClassLevelFacet (pcgen.cdom.facet.model.ClassLevelFacet)3 CompanionModFacet (pcgen.cdom.facet.model.CompanionModFacet)3 DeityFacet (pcgen.cdom.facet.model.DeityFacet)3 DomainFacet (pcgen.cdom.facet.model.DomainFacet)3 ExpandedCampaignFacet (pcgen.cdom.facet.model.ExpandedCampaignFacet)3 SizeFacet (pcgen.cdom.facet.model.SizeFacet)3 StatFacet (pcgen.cdom.facet.model.StatFacet)3 TemplateFacet (pcgen.cdom.facet.model.TemplateFacet)3 BonusChangeFacet (pcgen.cdom.facet.BonusChangeFacet)2 DirectAbilityFacet (pcgen.cdom.facet.DirectAbilityFacet)2 LanguageFacet (pcgen.cdom.facet.model.LanguageFacet)2 GameMode (pcgen.core.GameMode)2 SkillFacade (pcgen.facade.core.SkillFacade)2 AbstractReferenceContext (pcgen.rules.context.AbstractReferenceContext)2