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);
}
}
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;
}
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());
}
Aggregations