Class SplashProjectile

All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable

public final class SplashProjectile extends CollidingProjectile
  • Field Details

    • chainKillGeneration

      public int chainKillGeneration
    • hitCount

      public byte hitCount
  • 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 CollidingProjectile
    • 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 CollidingProjectile
    • setup

      public void setup(Tower tower, float damage, com.badlogic.gdx.math.Vector2 start, com.badlogic.gdx.math.Vector2 end, float speed)
    • setUnregistered

      public void setUnregistered()
      Overrides:
      setUnregistered in class Registrable
    • reset

      public void reset()
      Description copied from interface: com.badlogic.gdx.utils.Pool.Poolable
      Resets the object for reuse. Object references should be nulled and fields may be set to default values.
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable
      Overrides:
      reset in class CollidingProjectile
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float delta)
      Specified by:
      draw in class Projectile
    • enemyHit

      protected void enemyHit(Enemy enemy)
      Specified by:
      enemyHit in class CollidingProjectile
    • isDone

      public boolean isDone()
      Overrides:
      isDone in class CollidingProjectile
      Returns:
      true, если снаряд больше не нужен и может быть убран из системы