Class LightEnemy

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

public final class LightEnemy extends Enemy
  • 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 Enemy
    • 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 Enemy
    • 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 Enemy
    • hasDrawPriority

      public boolean hasDrawPriority()
      Specified by:
      hasDrawPriority in class Enemy
    • giveDamage

      public float giveDamage(Tower tower, float damage, DamageType damageType)
      Description copied from class: Enemy
      Вызывать только через enemySystem
      Overrides:
      giveDamage in class Enemy
    • getBuffedDamageMultiplier

      public float getBuffedDamageMultiplier(TowerType towerType, DamageType damageType)
      Overrides:
      getBuffedDamageMultiplier in class Enemy
      Parameters:
      towerType - may be null
    • update

      public void update(float deltaTime)
      Overrides:
      update in class Enemy
    • drawBatch

      public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime)
      Overrides:
      drawBatch in class Enemy