Class ShieldArcAbility

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

public class ShieldArcAbility 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.
    • angle

      public float angle
      Angle of shield arc.
    • angleOffset

      public float angleOffset
      Offset parameters for shield.
    • x

      public float x
      Offset parameters for shield.
    • y

      public float y
      Offset parameters for shield.
    • whenShooting

      public boolean whenShooting
      If true, only activates when shooting.
    • width

      public float width
      Width of shield line.
    • drawArc

      public boolean drawArc
      Whether to draw the arc line.
    • region

      @Nullable public String region
      If not null, will be drawn on top.
    • offsetRegion

      public boolean offsetRegion
      If true, sprite position will be influenced by x/y.
    • widthScale

      protected float widthScale
      State.
    • alpha

      protected float alpha
      State.
  • Constructor Details

    • ShieldArcAbility

      public ShieldArcAbility()
  • 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
    • init

      public void init(UnitType type)
      Overrides:
      init 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