Class CannonProjectile

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

public final class CannonProjectile 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(Tower tower, Enemy target, float damage, float explosionRangeInTiles, com.badlogic.gdx.math.Vector2 start, float speed, int shattersCount, float shattersDamageMultiplier, float shattersFlyDistance)
    • 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
    • draw

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