Class Ability

java.lang.Object
mindustry.entities.abilities.Ability
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ArmorPlateAbility, EnergyFieldAbility, ForceFieldAbility, LiquidExplodeAbility, LiquidRegenAbility, MoveEffectAbility, MoveLightningAbility, RegenAbility, RepairFieldAbility, ShieldArcAbility, ShieldRegenFieldAbility, SpawnDeathAbility, StatusFieldAbility, SuppressionFieldAbility, UnitSpawnAbility

public abstract class Ability extends Object implements Cloneable
  • Field Details

    • display

      public boolean display
      If false, this ability does not show in unit stats.
    • data

      public float data
  • Constructor Details

    • Ability

      public Ability()
  • Method Details

    • update

      public void update(mindustry.gen.Unit unit)
    • draw

      public void draw(mindustry.gen.Unit unit)
    • death

      public void death(mindustry.gen.Unit unit)
    • init

      public void init(UnitType type)
    • displayBars

      public void displayBars(mindustry.gen.Unit unit, Table bars)
    • addStats

      public void addStats(Table t)
    • copy

      public Ability copy()
    • localized

      public String localized()
      Returns:
      localized ability name; mods should override this.