Class GridAction.PulseAction
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Action
com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
com.github.yellowstonegames.glyph.GridAction
com.github.yellowstonegames.glyph.GridAction.ExplosionAction
com.github.yellowstonegames.glyph.GridAction.PulseAction
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.actions.FinishableAction, com.badlogic.gdx.utils.Pool.Poolable
- Enclosing class:
GridAction
A variant on
GridAction.ExplosionAction that shows waves of different colors extend in circles from the center
of the burst.-
Nested Class Summary
Nested classes/interfaces inherited from class GridAction
GridAction.CloudAction, GridAction.ExplosionAction, GridAction.GibberishAction, GridAction.PulseAction, GridAction.TintAction -
Field Summary
Fields inherited from class GridAction.ExplosionAction
affected, center, colors, lightMap, radius, seedFields inherited from class GridAction
grid, GUI_RANDOM, validFields inherited from class com.badlogic.gdx.scenes.scene2d.Action
actor, target -
Constructor Summary
ConstructorsConstructorDescriptionPulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Coord center, int radius) PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius) PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span) PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span, int[] coloring) PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span, com.github.tommyettinger.ds.IntList coloring) PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, int[] coloring) PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, com.github.tommyettinger.ds.IntList coloring) PulseAction(GlyphGrid targeting, com.github.yellowstonegames.grid.Coord center, int radius) -
Method Summary
Methods inherited from class GridAction.ExplosionAction
useAcridColors, useElectricColors, useFieryColors, useMistyColors, useToxicColorsMethods inherited from class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
act, begin, end, finish, getDuration, getInterpolation, getTime, isComplete, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTimeMethods inherited from class com.badlogic.gdx.scenes.scene2d.Action
getActor, getPool, getTarget, setActor, setPool, setTarget, toString
-
Constructor Details
-
PulseAction
-
PulseAction
public PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Coord center, int radius) -
PulseAction
public PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius) -
PulseAction
public PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, com.github.tommyettinger.ds.IntList coloring) -
PulseAction
public PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, int[] coloring) -
PulseAction
public PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span) -
PulseAction
public PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span, com.github.tommyettinger.ds.IntList coloring) -
PulseAction
public PulseAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span, int[] coloring)
-
-
Method Details
-
update
protected void update(float percent) Description copied from class:GridAction.ExplosionActionCalled each frame.- Overrides:
updatein classGridAction.ExplosionAction- 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.
-