Class GridAction
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Action
com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
com.github.yellowstonegames.glyph.GridAction
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.actions.FinishableAction, com.badlogic.gdx.utils.Pool.Poolable
- Direct Known Subclasses:
GridAction.ExplosionAction, GridAction.TintAction
public abstract class GridAction
extends com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
Action types that operate on potentially multiple GlyphGrid cells.
These are not pooled and are not compatible with the pooling done by
Actions; create a GridAction type with a constructor, which always
requires a GlyphGrid to operate upon.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA variant onGridAction.ExplosionActionthat uses continuous noise to remove a set of cells from the affected area that changes over time.static classA GridAction that draws a blast of changing background colors in a given radius, potentially avoiding changing the colors of solid obstacles defined by aGridAction.ExplosionAction.lightMap.static classAn effect that acts like anGridAction.ExplosionAction, but instead of changing the background colors, this changes the foreground glyph to a randomly-selected character fromGridAction.GibberishAction.choices.static classA variant onGridAction.ExplosionActionthat shows waves of different colors extend in circles from the center of the burst.static classChanges the color tint of one or more cells on a GlyphGrid for some amount of time. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.github.tommyettinger.random.PouchRandomA randomly-seeded random number generator that is meant to be used only for visual effects that don't change gameplay or other logic.com.github.yellowstonegames.grid.RegionFields inherited from class com.badlogic.gdx.scenes.scene2d.Action
actor, target -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGridAction(GlyphGrid targeting) protectedGridAction(GlyphGrid targeting, float duration) protectedGridAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid) -
Method Summary
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, updateMethods inherited from class com.badlogic.gdx.scenes.scene2d.Action
getActor, getPool, getTarget, setActor, setPool, setTarget, toString
-
Field Details
-
GUI_RANDOM
public static final com.github.tommyettinger.random.PouchRandom GUI_RANDOMA randomly-seeded random number generator that is meant to be used only for visual effects that don't change gameplay or other logic. This uses the fastest pseudo-random number generator in Juniper right now,PouchRandom, but because the output of a randomly-seeded generator can't be relied upon, the implementation could change in a future version.
The main thing this is used for currently is to assign seeds to actions with a pseudo-random component. -
grid
-
valid
public com.github.yellowstonegames.grid.Region valid
-
-
Constructor Details
-
GridAction
-
GridAction
-
GridAction
protected GridAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid)
-