Class DamageSystem

All Implemented Interfaces:
Disposable, KryoSerializable

public final class DamageSystem extends GameSystem
  • Field Details

    • DAMAGE_DRAIN_MAX_ITERATIONS

      public static final int DAMAGE_DRAIN_MAX_ITERATIONS
      See Also:
  • Constructor Details

    • DamageSystem

      public DamageSystem()
  • Method Details

    • write

      public void write(Kryo kryo, Output output)
      Specified by:
      write in interface KryoSerializable
      Overrides:
      write in class Registrable
    • read

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
      Overrides:
      read in class Registrable
    • obtainRecord

      public DamageRecord obtainRecord()
    • 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
    • queueDamage

      public void queueDamage(DamageRecord record)
    • getTowersMaxDps

      public double getTowersMaxDps()
      Returns:
      MDPS
    • setTowersMaxDps

      public void setTowersMaxDps(double mdps)
    • queueEnemyKill

      public void queueEnemyKill(DamageRecord lastDamage)
    • drainDamageAndKillQueue

      public void drainDamageAndKillQueue()
      Actually applies the damage given to the enemies
    • drainDamageAndKillQueueTillEmpty

      public void drainDamageAndKillQueueTillEmpty()
    • update

      public void update(float deltaTime)
      Overrides:
      update in class GameSystem
    • drawDebugDpsChart

      public void drawDebugDpsChart(Batch batch)
    • affectsGameState

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

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