Search in sources :

Example 11 with MockUIDelegate

use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.

the class TemplateFavoredClassTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    fcFacet = FacetLibrary.getFacet(FavoredClassFacet.class);
    context.getReferenceContext().constructCDOMObject(PCClass.class, "Favorite");
    TokenRegistration.register(CHOOSE_CLASS_TOKEN);
    ChooserFactory.setDelegate(new MockUIDelegate());
}
Also used : MockUIDelegate(pcgen.gui2.facade.MockUIDelegate) FavoredClassFacet(pcgen.cdom.facet.analysis.FavoredClassFacet)

Example 12 with MockUIDelegate

use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.

the class SpellDomainsTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    sp = context.getReferenceContext().constructCDOMObject(Spell.class, "MySpell");
    dragon = context.getReferenceContext().constructCDOMObject(PCClass.class, "Dragon");
    dragon.addToListFor(ListKey.TYPE, Type.MONSTER);
    domain = create(Domain.class, "Source");
    ChooserFactory.setDelegate(new MockUIDelegate());
}
Also used : MockUIDelegate(pcgen.gui2.facade.MockUIDelegate) PCClass(pcgen.core.PCClass) Domain(pcgen.core.Domain) Spell(pcgen.core.spell.Spell)

Example 13 with MockUIDelegate

use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.

the class RaceMonCSkillTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    mcsFacet = FacetLibrary.getFacet(MonsterCSkillFacet.class);
    lscFacet = FacetLibrary.getFacet(ListSkillCostFacet.class);
    sk = context.getReferenceContext().constructCDOMObject(Skill.class, "MySkill");
    dragon = context.getReferenceContext().constructCDOMObject(PCClass.class, "Dragon");
    dragon.addToListFor(ListKey.TYPE, Type.MONSTER);
    new HdToken().parseToken(context, dragon, "8");
    new IsmonsterToken().parseToken(context, dragon, "YES");
    TokenRegistration.register(CHOOSE_SKILL_TOKEN);
    ChooserFactory.setDelegate(new MockUIDelegate());
}
Also used : Skill(pcgen.core.Skill) HdToken(plugin.lsttokens.pcclass.HdToken) IsmonsterToken(plugin.lsttokens.pcclass.IsmonsterToken) MockUIDelegate(pcgen.gui2.facade.MockUIDelegate) ListSkillCostFacet(pcgen.cdom.facet.analysis.ListSkillCostFacet) MonsterCSkillFacet(pcgen.cdom.facet.input.MonsterCSkillFacet) PCClass(pcgen.core.PCClass)

Example 14 with MockUIDelegate

use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.

the class SkillClassesTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    sk = context.getReferenceContext().constructCDOMObject(Skill.class, "MySkill");
    dragon = context.getReferenceContext().constructCDOMObject(PCClass.class, "Dragon");
    dragon.addToListFor(ListKey.TYPE, Type.MONSTER);
    ChooserFactory.setDelegate(new MockUIDelegate());
}
Also used : Skill(pcgen.core.Skill) MockUIDelegate(pcgen.gui2.facade.MockUIDelegate) PCClass(pcgen.core.PCClass)

Aggregations

MockUIDelegate (pcgen.gui2.facade.MockUIDelegate)14 PCClass (pcgen.core.PCClass)9 Skill (pcgen.core.Skill)7 LocalSkillCostFacet (pcgen.cdom.facet.analysis.LocalSkillCostFacet)4 FavoredClassFacet (pcgen.cdom.facet.analysis.FavoredClassFacet)2 ListSkillCostFacet (pcgen.cdom.facet.analysis.ListSkillCostFacet)2 LocalAddedSkillCostFacet (pcgen.cdom.facet.input.LocalAddedSkillCostFacet)2 Spell (pcgen.core.spell.Spell)2 ArrayList (java.util.ArrayList)1 LogRecord (java.util.logging.LogRecord)1 Test (org.junit.Test)1 DirectAbilityFacet (pcgen.cdom.facet.DirectAbilityFacet)1 RaceSelectionFacet (pcgen.cdom.facet.RaceSelectionFacet)1 TemplateSelectionFacet (pcgen.cdom.facet.TemplateSelectionFacet)1 WeaponProfFacet (pcgen.cdom.facet.WeaponProfFacet)1 MonsterCSkillFacet (pcgen.cdom.facet.input.MonsterCSkillFacet)1 ActiveEqModFacet (pcgen.cdom.facet.model.ActiveEqModFacet)1 AlignmentFacet (pcgen.cdom.facet.model.AlignmentFacet)1 BioSetFacet (pcgen.cdom.facet.model.BioSetFacet)1 CheckFacet (pcgen.cdom.facet.model.CheckFacet)1