Class SnowballUnit

All Implemented Interfaces:
KryoSerializable

public final class SnowballUnit extends Unit
  • Method Details

    • write

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

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

      public void setup(Tower tower, float duration)
    • getDrawLayer

      public int getDrawLayer()
      Overrides:
      getDrawLayer in class Unit
      Returns:
      Unit.LAYER_GROUNDED / LAYER_FLYING etc
    • onSpawned

      public void onSpawned()
      Overrides:
      onSpawned in class Unit
    • setUnregistered

      public void setUnregistered()
      Description copied from class: Registrable
      Remove the reference to the game state and mark this object as not registered.
      Overrides:
      setUnregistered in class Registrable
    • drawBatch

      public void drawBatch(Batch batch, float deltaTime)
      Specified by:
      drawBatch in class Unit
    • update

      public void update(float deltaTime)
      Overrides:
      update in class Unit