use of eidolons.client.cc.gui.neo.choice.EntityChoiceView in project Eidolons by IDemiurge.
the class DemoManager method initHero.
private static void initHero() {
// TODO JUST USE 'CHOOSE CENTER HERO' ?
List<ObjType> demoHeroes = new ArrayList<>();
DataManager.getTypesSubGroup(DC_TYPE.CHARS, "Demo");
Unit entity = null;
ChoiceSequence sequence = new ChoiceSequence();
sequence.addView(new EntityChoiceView(sequence, entity, demoHeroes) {
@Override
public String getInfo() {
return null;
}
@Override
protected PROPERTY getPROP() {
return null;
}
// @Override
// protected Condition getFilterConditions() {
// // return new NumericCondition("level");
// }
@Override
protected VALUE getFilterValue() {
return null;
}
protected OBJ_TYPE getTYPE() {
return DC_TYPE.CHARS;
}
});
sequence.setManager(new SequenceManager() {
@Override
public void doneSelection() {
WaitMaster.receiveInput(WAIT_OPERATIONS.SELECTION, sequence.getValue());
Launcher.resetView(VIEWS.HC);
// setLeader()
PartyHelper.loadParty(demoParty);
// initSelectedHero();
// newParty();
// launchHC();
}
@Override
public void cancelSelection() {
}
});
sequence.start();
}
Aggregations