Class FlyingParticlesLine

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

public class FlyingParticlesLine extends Shape implements ProjectileTrail
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class com.prineside.tdi2.Shape

    Shape.Factory<T extends Shape>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(com.badlogic.gdx.graphics.g2d.Batch batch)
     
    void
     
    int
    ID инстанса хвоста, чтобы проверять, не был ли он выдан заново кому-то Меняется setup()
    boolean
     
    void
    Resets the object for reuse.
    void
    setup(float startX, float startY, float endX, float endY, com.badlogic.gdx.graphics.g2d.TextureRegion texture, float textureWidth, float textureHeight, float particleRotation, float lineWidth, com.badlogic.gdx.graphics.Color startColor, com.badlogic.gdx.graphics.Color endColor, float particleDistance, float duration, float density, com.badlogic.gdx.graphics.g2d.ParticleEmitter.ScaledNumericValue alphaScale)
     
    void
    update(float deltaTime)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setup

      public void setup(float startX, float startY, float endX, float endY, com.badlogic.gdx.graphics.g2d.TextureRegion texture, float textureWidth, float textureHeight, float particleRotation, float lineWidth, com.badlogic.gdx.graphics.Color startColor, com.badlogic.gdx.graphics.Color endColor, float particleDistance, float duration, float density, com.badlogic.gdx.graphics.g2d.ParticleEmitter.ScaledNumericValue alphaScale)
    • update

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

      public boolean isFinished()
      Specified by:
      isFinished 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
    • 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
    • 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