Search in sources :

Example 6 with ChoiceSequence

use of eidolons.client.cc.gui.neo.choice.ChoiceSequence in project Eidolons by IDemiurge.

the class Tavern method openView.

public ChoiceSequence openView() {
    generateHeroes();
    HC_SequenceMaster sm = new HC_SequenceMaster() {

        public void doneSelection() {
            getSequence().getValue();
            Unit hero = (Unit) getSequence().getResults().get(0);
            hired(hero);
            Launcher.resetView(VIEWS.HC);
        }

        @Override
        public void cancelSelection() {
            Launcher.resetView(VIEWS.HC);
        }
    };
    // toggle between heroes and mercs?
    // mini-dialogue upon selection or 'approach'?
    ChoiceSequence cs = new ChoiceSequence();
    cs.setManager(sm);
    cs.addView(new TavernView(this, cs));
    cs.start();
    return cs;
}
Also used : HC_SequenceMaster(eidolons.client.dc.HC_SequenceMaster) ChoiceSequence(eidolons.client.cc.gui.neo.choice.ChoiceSequence) TavernView(eidolons.client.cc.gui.neo.choice.TavernView) Unit(eidolons.entity.obj.unit.Unit)

Aggregations

ChoiceSequence (eidolons.client.cc.gui.neo.choice.ChoiceSequence)6 SequenceManager (eidolons.client.dc.SequenceManager)4 Unit (eidolons.entity.obj.unit.Unit)4 ArrayList (java.util.ArrayList)4 ObjType (main.entity.type.ObjType)3 EntityChoiceView (eidolons.client.cc.gui.neo.choice.EntityChoiceView)1 EnumChoiceView (eidolons.client.cc.gui.neo.choice.EnumChoiceView)1 HeroChoiceSequence (eidolons.client.cc.gui.neo.choice.HeroChoiceSequence)1 ListChoiceView (eidolons.client.cc.gui.neo.choice.ListChoiceView)1 PositionChoiceView (eidolons.client.cc.gui.neo.choice.PositionChoiceView)1 PrincipleChoiceView (eidolons.client.cc.gui.neo.choice.PrincipleChoiceView)1 ScenarioChoiceView (eidolons.client.cc.gui.neo.choice.ScenarioChoiceView)1 ScenarioModeChoiceView (eidolons.client.cc.gui.neo.choice.ScenarioModeChoiceView)1 TavernView (eidolons.client.cc.gui.neo.choice.TavernView)1 HC_SequenceMaster (eidolons.client.dc.HC_SequenceMaster)1 OBJECTIVE_TYPE (eidolons.game.battlecraft.logic.meta.scenario.ObjectiveMaster.OBJECTIVE_TYPE)1 File (java.io.File)1 HashMap (java.util.HashMap)1 List (java.util.List)1 OBJ_TYPE (main.content.OBJ_TYPE)1