Search in sources :

Example 1 with EffectImpl

use of main.ability.effects.EffectImpl in project Eidolons by IDemiurge.

the class ActivesConstructor method setAnimForEffects.

public static void setAnimForEffects(DC_ActiveObj entity) {
    List<ActiveObj> list = new ArrayList<>(entity.getActives());
    for (Active active : list) {
        for (Ability abil : ((AbilityObj) active).getAbilities().getAbils()) {
            for (Effect effect : abil.getEffects().getEffects()) {
                if (effect instanceof EffectImpl) {
                    EffectImpl effect2 = (EffectImpl) effect;
                    effect2.setAnimationActive(entity);
                }
            }
        }
    }
}
Also used : Active(main.entity.obj.Active) DC_ActiveObj(eidolons.entity.active.DC_ActiveObj) ActiveObj(main.entity.obj.ActiveObj) EffectImpl(main.ability.effects.EffectImpl) ArrayList(java.util.ArrayList) DC_Effect(eidolons.ability.effects.DC_Effect) AddBuffEffect(eidolons.ability.effects.attachment.AddBuffEffect) RollEffect(eidolons.ability.effects.oneshot.mechanic.RollEffect) Effect(main.ability.effects.Effect) RayEffect(eidolons.ability.effects.containers.customtarget.RayEffect) WaveEffect(eidolons.ability.effects.containers.customtarget.WaveEffect) ZoneEffect(eidolons.ability.effects.containers.customtarget.ZoneEffect)

Aggregations

DC_Effect (eidolons.ability.effects.DC_Effect)1 AddBuffEffect (eidolons.ability.effects.attachment.AddBuffEffect)1 RayEffect (eidolons.ability.effects.containers.customtarget.RayEffect)1 WaveEffect (eidolons.ability.effects.containers.customtarget.WaveEffect)1 ZoneEffect (eidolons.ability.effects.containers.customtarget.ZoneEffect)1 RollEffect (eidolons.ability.effects.oneshot.mechanic.RollEffect)1 DC_ActiveObj (eidolons.entity.active.DC_ActiveObj)1 ArrayList (java.util.ArrayList)1 Effect (main.ability.effects.Effect)1 EffectImpl (main.ability.effects.EffectImpl)1 Active (main.entity.obj.Active)1 ActiveObj (main.entity.obj.ActiveObj)1