Class BulletSmokeMultiLine

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

public final class BulletSmokeMultiLine extends Shape implements ProjectileTrail
  • Field Details

    • nodesDisperseTime

      public float nodesDisperseTime
    • maxSegmentWidth

      public float maxSegmentWidth
    • maxAlpha

      public float maxAlpha
  • Method Details

    • 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.
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable
    • setup

      public void setup(float startX, float startY, float endX, float endY)
    • 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)
    • update

      public void update(float deltaTime)
      Specified by:
      update in interface ProjectileTrail
    • draw

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

      public boolean isFinished()
      Specified by:
      isFinished in interface ProjectileTrail
    • free

      public void free()
      Specified by:
      free in interface ProjectileTrail
    • getUsageId

      public int getUsageId()
      Description copied from interface: ProjectileTrail
      ID инстанса хвоста, чтобы проверять, не был ли он выдан заново кому-то Меняется setup()
      Specified by:
      getUsageId in interface ProjectileTrail