Class ProjectileTrailSystem

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.ProjectileTrailSystem
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.KryoSerializable

public final class ProjectileTrailSystem extends GameSystem
Освобождает TrailMultiLine обратно в пул, если он не обновляется длительное время (уже не виден, isFinished() возвращает true)
  • Constructor Details

    • ProjectileTrailSystem

      public ProjectileTrailSystem()
  • Method Details

    • affectsGameState

      public boolean affectsGameState()
      Specified by:
      affectsGameState in class GameSystem
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in class GameSystem
    • addTrail

      public void addTrail(ProjectileTrail trail)
    • addOpaqueTrail

      public void addOpaqueTrail(ProjectileTrail trail)
    • isEnabled

      public boolean isEnabled()
    • updateDraw

      public void updateDraw(float deltaTime)
    • drawOpaque

      public void drawOpaque(com.badlogic.gdx.graphics.g2d.Batch batch)
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class GameSystem