Search in sources :

Example 31 with VALUE

use of main.content.VALUE 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)

Example 32 with VALUE

use of main.content.VALUE in project Eidolons by IDemiurge.

the class DC_QuickItemObj method initActiveType.

private ObjType initActiveType() {
    ObjType type = new TypeInitializer().getNewType(DC_TYPE.ACTIONS);
    type.setProperty(G_PROPS.IMAGE, getImagePath());
    type.setProperty(G_PROPS.NAME, getName() + "'s active");
    type.setGame(game);
    for (VALUE v : ValuePages.COSTS) {
        type.copyValue(v, this);
    }
    for (VALUE v : ValuePages.QUICK_ITEM_PARAMETERS) {
        type.copyValue(v, this);
    }
    for (VALUE v : ValuePages.QUICK_ITEM_PROPERTIES) {
        type.copyValue(v, this);
    }
    for (VALUE v : TRANSLATED_VALUES) {
        type.copyValue(v, this);
    }
    return type;
}
Also used : ObjType(main.entity.type.ObjType) TypeInitializer(main.system.launch.TypeInitializer) VALUE(main.content.VALUE)

Example 33 with VALUE

use of main.content.VALUE in project Eidolons by IDemiurge.

the class HeroLevelManager method copyLevelValues.

private static void copyLevelValues(Unit hero, ObjType type) {
    for (VALUE v : LEVEL_RELEVANT_VALUES) {
        buffer.put(v, type.getValue(v));
        type.setValue(v, hero.getValue(v));
    }
}
Also used : VALUE(main.content.VALUE)

Aggregations

VALUE (main.content.VALUE)33 ObjType (main.entity.type.ObjType)8 PARAMETER (main.content.values.parameters.PARAMETER)7 ArrayList (java.util.ArrayList)5 PROPERTY (main.content.values.properties.PROPERTY)5 PARAMS (eidolons.content.PARAMS)3 UNIT_INFO_PARAMS (eidolons.content.UNIT_INFO_PARAMS)2 MultiValueContainer (eidolons.libgdx.gui.panels.dc.unitinfo.MultiValueContainer)2 List (java.util.List)2 OBJ_TYPE (main.content.OBJ_TYPE)2 G_PROPS (main.content.values.properties.G_PROPS)2 Obj (main.entity.obj.Obj)2 Formula (main.system.math.Formula)2 ChoiceSequence (eidolons.client.cc.gui.neo.choice.ChoiceSequence)1 EntityChoiceView (eidolons.client.cc.gui.neo.choice.EntityChoiceView)1 SequenceManager (eidolons.client.dc.SequenceManager)1 DC_UnitAction (eidolons.entity.active.DC_UnitAction)1 DC_Obj (eidolons.entity.obj.DC_Obj)1 Unit (eidolons.entity.obj.unit.Unit)1 FutureBuilder (eidolons.game.battlecraft.ai.tools.future.FutureBuilder)1