Class ProjectileTrailSystem

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.ProjectileTrailSystem
All Implemented Interfaces:
Disposable, KryoSerializable

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

    • ProjectileTrailSystem

      public ProjectileTrailSystem()
  • Method Details

    • setup

      public void setup()
      Description copied from class: GameSystem
      Performs the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.
      Overrides:
      setup in class GameSystem
    • 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(Batch batch)
    • draw

      public void draw(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 Disposable
      Overrides:
      dispose in class GameSystem