Search in sources :

Example 1 with TavernView

use of eidolons.client.cc.gui.neo.choice.TavernView 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)1 TavernView (eidolons.client.cc.gui.neo.choice.TavernView)1 HC_SequenceMaster (eidolons.client.dc.HC_SequenceMaster)1 Unit (eidolons.entity.obj.unit.Unit)1