Class GridAction.CloudAction

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.CloudAction extends GridAction.ExplosionAction
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.
  • Constructor Details

    • CloudAction

      public CloudAction(GlyphGrid targeting, com.github.yellowstonegames.grid.Coord center, int radius)
    • 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.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.