Class ForceFieldAbility

java.lang.Object
mindustry.entities.abilities.Ability
mindustry.entities.abilities.ForceFieldAbility
All Implemented Interfaces:
Cloneable

public class ForceFieldAbility extends Ability
  • Field Details

    • radius

      public float radius
      Shield radius.
    • regen

      public float regen
      Shield regen speed in damage/tick.
    • max

      public float max
      Maximum shield.
    • cooldown

      public float cooldown
      Cooldown after the shield is broken, in ticks.
    • sides

      public int sides
      Sides of shield polygon.
    • rotation

      public float rotation
      Rotation of shield.
    • radiusScale

      protected float radiusScale
      State.
    • alpha

      protected float alpha
      State.
  • Constructor Details

    • ForceFieldAbility

      public ForceFieldAbility(float radius, float regen, float max, float cooldown)
    • ForceFieldAbility

      public ForceFieldAbility(float radius, float regen, float max, float cooldown, int sides, float rotation)
  • Method Details

    • addStats

      public void addStats(Table t)
      Overrides:
      addStats in class Ability
    • update

      public void update(mindustry.gen.Unit unit)
      Overrides:
      update in class Ability
    • draw

      public void draw(mindustry.gen.Unit unit)
      Overrides:
      draw in class Ability
    • displayBars

      public void displayBars(mindustry.gen.Unit unit, Table bars)
      Overrides:
      displayBars in class Ability
    • checkRadius

      public void checkRadius(mindustry.gen.Unit unit)