Class GridAction.PulseAction

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Action
com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.actions.FinishableAction, com.badlogic.gdx.utils.Pool.Poolable
Enclosing class:
GridAction

public static class GridAction.PulseAction extends GridAction.ExplosionAction
A variant on GridAction.ExplosionAction that shows waves of different colors extend in circles from the center of the burst.
  • Constructor Details

    • PulseAction

      public PulseAction(GlyphGrid targeting, com.github.yellowstonegames.grid.Coord center, int radius)
    • 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.ExplosionAction
      Called each frame.
      Overrides:
      update in class GridAction.ExplosionAction
      Parameters:
      percent - The percentage of completion for this action, growing from 0 to 1 over the duration. If reversed, this will shrink from 1 to 0.