Class GridAction.CloudAction
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.CloudAction
- 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 uses continuous noise to remove a set of cells from the affected area
that changes over time. This makes a more foggy or gas-like appearance and works well with longer durations.-
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
ConstructorsConstructorDescriptionCloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Coord center, int radius) CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius) CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span) CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span, int[] coloring) CloudAction(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) CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, int[] coloring) CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, com.github.tommyettinger.ds.IntList coloring) CloudAction(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
-
CloudAction
-
CloudAction
public CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Coord center, int radius) -
CloudAction
public CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius) -
CloudAction
public CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, com.github.tommyettinger.ds.IntList coloring) -
CloudAction
public CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, int[] coloring) -
CloudAction
public CloudAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid, com.github.yellowstonegames.grid.Coord center, int radius, float angle, float span) -
CloudAction
public CloudAction(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) -
CloudAction
public CloudAction(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.
-