Class UnitSystem

All Implemented Interfaces:
Disposable, KryoSerializable

public final class UnitSystem extends GameSystem
  • Field Details

    • spawnedSnowballs

      public int spawnedSnowballs
    • spawnedBallLightnings

      public int spawnedBallLightnings
  • Constructor Details

    • UnitSystem

      public UnitSystem()
  • 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
    • affectsGameState

      public boolean affectsGameState()
      Specified by:
      affectsGameState in class GameSystem
    • 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
    • getBallLightningAccumulationTime

      public float getBallLightningAccumulationTime()
    • postStateRestore

      public void postStateRestore()
      Overrides:
      postStateRestore in class GameSystem
    • preparePathToRandomSpawn

      public boolean preparePathToRandomSpawn(Unit unit, Tile startingTile)
    • register

      public void register(Unit unit)
    • killUnit

      public void killUnit(Unit unit, Enemy killer)
    • update

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

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

      public void drawGrounded(Batch batch, float deltaTime, float interpolatedTime)
    • drawFlying

      public void drawFlying(Batch batch, float deltaTime, float interpolatedTime)