Class MissileProjectile

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

public final class MissileProjectile extends EnemyFollowingExplosiveProjectile
  • 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 EnemyFollowingExplosiveProjectile
    • 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 EnemyFollowingExplosiveProjectile
    • setup

      public void setup(MissileTower tower, Enemy target, float damage, float explosionRangeInTiles, com.badlogic.gdx.math.Vector2 start, float speed, float maxRotationSpeed, float startingAngle, float scale)
    • 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 EnemyFollowingExplosiveProjectile
    • getTower

      public MissileTower getTower()
    • setTarget

      public void setTarget(Enemy target)
      Overrides:
      setTarget in class EnemyFollowingProjectile
    • update

      public void update(float deltaTime)
      Overrides:
      update in class EnemyFollowingProjectile
    • draw

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