Class ChainLightning

java.lang.Object
com.prineside.tdi2.Shape
com.prineside.tdi2.shapes.ChainLightning
All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable

public final class ChainLightning extends Shape
  • Field Details

  • Method Details

    • setFadingToEnd

      public void setFadingToEnd(boolean fadingToEnd)
    • getExistsTime

      public float getExistsTime()
    • getStartX

      public float getStartX()
    • getStartY

      public float getStartY()
    • reset

      public void reset()
      Description copied from interface: com.badlogic.gdx.utils.Pool.Poolable
      Resets the object for reuse. Object references should be nulled and fields may be set to default values.
    • setPosition

      public void setPosition(float startX, float startY, float endX, float endY)
    • setup

      public void setup(float startX, float startY, float endX, float endY, float regenerationInterval, float drawDuration, boolean fadeOut, float minWidth, float maxWidth, float averageLength)
    • setTexture

      public void setTexture(com.badlogic.gdx.graphics.g2d.TextureRegion texture, boolean mirror, boolean flip)
    • setColor

      public void setColor(com.badlogic.gdx.graphics.Color color)
    • getColor

      public com.badlogic.gdx.graphics.Color getColor()
    • update

      public void update(float deltaTime)
    • isFinished

      public boolean isFinished()
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
      Specified by:
      draw in class Shape
    • free

      public void free()