Search in sources :

Example 1 with EntityChoiceView

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();
}
Also used : EntityChoiceView(eidolons.client.cc.gui.neo.choice.EntityChoiceView) OBJ_TYPE(main.content.OBJ_TYPE) ObjType(main.entity.type.ObjType) PROPERTY(main.content.values.properties.PROPERTY) ArrayList(java.util.ArrayList) ChoiceSequence(eidolons.client.cc.gui.neo.choice.ChoiceSequence) VALUE(main.content.VALUE) Unit(eidolons.entity.obj.unit.Unit) SequenceManager(eidolons.client.dc.SequenceManager)

Aggregations

ChoiceSequence (eidolons.client.cc.gui.neo.choice.ChoiceSequence)1 EntityChoiceView (eidolons.client.cc.gui.neo.choice.EntityChoiceView)1 SequenceManager (eidolons.client.dc.SequenceManager)1 Unit (eidolons.entity.obj.unit.Unit)1 ArrayList (java.util.ArrayList)1 OBJ_TYPE (main.content.OBJ_TYPE)1 VALUE (main.content.VALUE)1 PROPERTY (main.content.values.properties.PROPERTY)1 ObjType (main.entity.type.ObjType)1