Class SnakeBossHeadEnemy

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Enemy
com.prineside.tdi2.enemies.bosses.SnakeBossHeadEnemy
All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable, ScheduledUpdater.Updatable

public final class SnakeBossHeadEnemy extends Enemy
  • Field Details

    • defaultMinSpeed

      public float defaultMinSpeed
    • defaultMaxSpeed

      public float defaultMaxSpeed
    • damageResistance

      public float damageResistance
  • 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
    • getBaseDamage

      public float getBaseDamage()
      Overrides:
      getBaseDamage in class Enemy
    • getAbilityVulnerability

      public float getAbilityVulnerability(AbilityType abilityType)
      Overrides:
      getAbilityVulnerability in class Enemy
    • getBuffedDamageMultiplier

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

      public void drawHealth(com.badlogic.gdx.graphics.g2d.Batch batch)
      Overrides:
      drawHealth in class Enemy
    • drawBatch

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

      public void onPositionSetToPath()
      Description copied from class: Enemy
      Вызывается, когда position устанавливается системой в соответствии с path и passedTiles. Здесь можно откорректировать позицию.
      Overrides:
      onPositionSetToPath in class Enemy
    • dynamicPathfindingAllowed

      public boolean dynamicPathfindingAllowed()
      Overrides:
      dynamicPathfindingAllowed in class Enemy
    • calculateSwingRotation

      public static float calculateSwingRotation(float passedTiles)
    • transformPositionToSwing

      public static void transformPositionToSwing(float passedTiles, float angle, com.badlogic.gdx.math.Vector2 position)