Search in sources :

Example 16 with Condition

use of main.elements.conditions.Condition in project Eidolons by IDemiurge.

the class TemplateSelectiveTargeting method initTargeting.

public void initTargeting() {
    Conditions conditions = DC_ConditionMaster.getSelectiveTargetingTemplateConditions(template);
    // TODO ?
    Condition c = filter.getConditions();
    if (c != null) {
        conditions.add(c);
    }
    filter.setConditions(conditions);
    filter.setTYPE(getTYPEforTemplate(template));
    initialized = true;
}
Also used : Condition(main.elements.conditions.Condition) Conditions(main.elements.conditions.Conditions)

Example 17 with Condition

use of main.elements.conditions.Condition in project Eidolons by IDemiurge.

the class MainManager method launchSelection.

public void launchSelection(final DC_TYPE t, final String group, String info) {
    Condition c = null;
    if (t == DC_TYPE.CHARS) {
        if (CharacterCreator.isArcadeMode()) {
            c = new NumericCondition("1", "{match_hero_level}");
        } else {
            if (DC_Game.game.getGameType() == GAME_TYPE.SCENARIO) {
                if (ScenarioPrecombatMaster.getScenario() != null) {
                    c = ScenarioPrecombatMaster.getSelectHeroConditions();
                }
            }
        }
    }
    sequenceMaster.launchEntitySelection(t, group, c, hero, info);
    sequenceMaster.getSequence().setManager(this);
    this.sequence = sequenceMaster.getSequence();
}
Also used : Condition(main.elements.conditions.Condition) NumericCondition(main.elements.conditions.NumericCondition) NumericCondition(main.elements.conditions.NumericCondition)

Aggregations

Condition (main.elements.conditions.Condition)17 Conditions (main.elements.conditions.Conditions)7 Ref (main.entity.Ref)4 RemoveBuffEffect (eidolons.ability.effects.oneshot.buff.RemoveBuffEffect)3 Unit (eidolons.entity.obj.unit.Unit)3 RefCondition (main.elements.conditions.RefCondition)3 FacingCondition (eidolons.ability.conditions.FacingCondition)2 DC_ActiveObj (eidolons.entity.active.DC_ActiveObj)2 DC_Obj (eidolons.entity.obj.DC_Obj)2 ArrayList (java.util.ArrayList)2 NumericCondition (main.elements.conditions.NumericCondition)2 Obj (main.entity.obj.Obj)2 STANDARD_EVENT_TYPE (main.game.logic.event.Event.STANDARD_EVENT_TYPE)2 FileChooser (main.swing.generic.components.editors.FileChooser)2 Formula (main.system.math.Formula)2 VisibilityCondition (eidolons.ability.conditions.VisibilityCondition)1 GraveCondition (eidolons.ability.conditions.special.GraveCondition)1 AddBuffEffect (eidolons.ability.effects.attachment.AddBuffEffect)1 ModifyPropertyEffect (eidolons.ability.effects.common.ModifyPropertyEffect)1 ModifyValueEffect (eidolons.ability.effects.common.ModifyValueEffect)1