Package squidpony.squidgrid.gui.gdx
Class PanelEffect.PulseEffect
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Action
com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
squidpony.squidgrid.gui.gdx.PanelEffect
squidpony.squidgrid.gui.gdx.PanelEffect.ExplosionEffect
squidpony.squidgrid.gui.gdx.PanelEffect.PulseEffect
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
- Enclosing class:
- PanelEffect
public static class PanelEffect.PulseEffect extends PanelEffect.ExplosionEffect
-
Nested Class Summary
Nested classes/interfaces inherited from class squidpony.squidgrid.gui.gdx.PanelEffect
PanelEffect.ExplosionEffect, PanelEffect.GibberishEffect, PanelEffect.GlowBallEffect, PanelEffect.ProjectileEffect, PanelEffect.PulseEffect, PanelEffect.SteadyProjectileEffect
-
Field Summary
Fields inherited from class squidpony.squidgrid.gui.gdx.PanelEffect.ExplosionEffect
affected, center, colors, lightMap, radius
Fields inherited from class squidpony.squidgrid.gui.gdx.PanelEffect
fastInSlowMidFastOut, target, validCells
-
Constructor Summary
Constructors Constructor Description PulseEffect(IPackedColorPanel targeting, float duration, Coord center, int radius)
PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius)
PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, double angle, double span)
PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, double angle, double span, float[] coloring)
PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, double angle, double span, List<? extends com.badlogic.gdx.graphics.Color> coloring)
PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, float[] coloring)
PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, List<? extends com.badlogic.gdx.graphics.Color> coloring)
PulseEffect(IPackedColorPanel targeting, Coord center, int radius)
-
Method Summary
Modifier and Type Method Description protected void
update(float percent)
Called each frame.Methods inherited from class squidpony.squidgrid.gui.gdx.PanelEffect.ExplosionEffect
useElectricColors, useFieryColors
Methods inherited from class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
act, begin, end, finish, getDuration, getInterpolation, getTime, isComplete, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
-
Constructor Details
-
PulseEffect
-
PulseEffect
-
PulseEffect
public PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius) -
PulseEffect
public PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, List<? extends com.badlogic.gdx.graphics.Color> coloring) -
PulseEffect
public PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, float[] coloring) -
PulseEffect
public PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, double angle, double span) -
PulseEffect
public PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, double angle, double span, List<? extends com.badlogic.gdx.graphics.Color> coloring) -
PulseEffect
public PulseEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid, Coord center, int radius, double angle, double span, float[] coloring)
-
-
Method Details
-
update
Description copied from class:PanelEffect.ExplosionEffect
Called each frame.- Overrides:
update
in classPanelEffect.ExplosionEffect
- Parameters:
percent
- The percentage of completion for this action, growing from 0 to 1 over the duration. Ifreversed
, this will shrink from 1 to 0.
-