Search in sources :

Example 1 with HC_SequenceMaster

use of eidolons.client.dc.HC_SequenceMaster in project Eidolons by IDemiurge.

the class ChoiceSequence method setManager.

public void setManager(SequenceManager manager) {
    this.manager = manager;
    if (manager instanceof HC_SequenceMaster) {
        HC_SequenceMaster sequenceMaster = (HC_SequenceMaster) manager;
        sequenceMaster.setSequence(this);
    }
}
Also used : HC_SequenceMaster(eidolons.client.dc.HC_SequenceMaster)

Example 2 with HC_SequenceMaster

use of eidolons.client.dc.HC_SequenceMaster 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)

Example 3 with HC_SequenceMaster

use of eidolons.client.dc.HC_SequenceMaster in project Eidolons by IDemiurge.

the class Town method selectTavern.

public Tavern selectTavern() {
    if (taverns.isEmpty()) {
        return null;
    }
    if (taverns.size() == 1) {
        return taverns.get(0);
    }
    HC_SequenceMaster sequenceMaster = new HC_SequenceMaster();
    sequenceMaster.launchEntitySelection(taverns, PartyHelper.getParty().getLeader(), "Select Tavern");
    if (WaitMaster.waitForInput(WAIT_OPERATIONS.SELECTION) == null) {
        return null;
    }
    return getTavern(sequenceMaster.getSequence().getValue());
}
Also used : HC_SequenceMaster(eidolons.client.dc.HC_SequenceMaster)

Aggregations

HC_SequenceMaster (eidolons.client.dc.HC_SequenceMaster)3 ChoiceSequence (eidolons.client.cc.gui.neo.choice.ChoiceSequence)1 TavernView (eidolons.client.cc.gui.neo.choice.TavernView)1 Unit (eidolons.entity.obj.unit.Unit)1