Class GenericExplosion

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Explosion
com.prineside.tdi2.explosions.GenericExplosion
All Implemented Interfaces:
Pool.Poolable, KryoSerializable

public final class GenericExplosion extends Explosion
  • Method Details

    • write

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

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

      public GenericExplosion cpy()
      Overrides:
      cpy in class Explosion
    • setup

      public void setup(Tower tower, float x, float y, float damage, float rangeInTiles, int splintersCount, float splinterDamage, float splinterDistanceInTiles, Color color, Color splinterTrailColor)
      Parameters:
      splinterTrailColor - may be null
    • explode

      public void explode()
      Overrides:
      explode in class Explosion
    • enemyAffected

      public void enemyAffected(Enemy enemy, float distanceToEpicenter, float rayPower)
    • isDone

      public boolean isDone()
      Overrides:
      isDone in class Explosion
    • update

      public void update(float delta)
      Description copied from class: Explosion
      Explosion starts at the epicenter and grows constantly with each update, until it reaches its range
      Overrides:
      update in class Explosion