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 Classes
    Modifier and Type
    Class
    Description
    static class 
    A variant on GridAction.ExplosionAction that uses continuous noise to remove a set of cells from the affected area that changes over time.
    static class 
    A GridAction that draws a blast of changing background colors in a given radius, potentially avoiding changing the colors of solid obstacles defined by a GridAction.ExplosionAction.lightMap.
    static class 
    An effect that acts like an GridAction.ExplosionAction, but instead of changing the background colors, this changes the foreground glyph to a randomly-selected character from GridAction.GibberishAction.choices.
    static class 
    A variant on GridAction.ExplosionAction that shows waves of different colors extend in circles from the center of the burst.
    static class 
    Changes the color tint of one or more cells on a GlyphGrid for some amount of time.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static final com.github.tommyettinger.random.PouchRandom
    A 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.Region
     

    Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action

    actor, target
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    GridAction(GlyphGrid targeting)
     
    protected
    GridAction(GlyphGrid targeting, float duration)
     
    protected
    GridAction(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, update

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Action

    getActor, getPool, getTarget, setActor, setPool, setTarget, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • GUI_RANDOM

      public static final com.github.tommyettinger.random.PouchRandom GUI_RANDOM
      A 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

      public GlyphGrid grid
    • valid

      public com.github.yellowstonegames.grid.Region valid
  • Constructor Details

    • GridAction

      protected GridAction(GlyphGrid targeting)
    • GridAction

      protected GridAction(GlyphGrid targeting, float duration)
    • GridAction

      protected GridAction(GlyphGrid targeting, float duration, com.github.yellowstonegames.grid.Region valid)