Class ChainLightningProjectile

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.projectiles.ChainLightningProjectile
All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable

public final class ChainLightningProjectile extends Projectile
  • 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 Projectile
    • 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 Projectile
    • setup

      public void setup(Tower tower, Enemy firstTarget, float damage, float minDamage, float chainDamageMultiplierEachJump, float chainLength, com.badlogic.gdx.math.Vector2 startPos)
    • 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 Projectile
    • isDone

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

      public boolean hasReachedTarget()
      Specified by:
      hasReachedTarget in class Projectile
    • applyDrawInterpolation

      public void applyDrawInterpolation(float interpolatedTime)
      Specified by:
      applyDrawInterpolation in class Projectile
    • update

      public void update(float deltaTime)
      Specified by:
      update in class Projectile
    • draw

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