Class UnitSystem

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.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(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      write in class Registrable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.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
      Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.
      Overrides:
      setup in class GameSystem
    • 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(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float interpolatedTime)
    • drawFlying

      public void drawFlying(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float interpolatedTime)