Package mindustry.entities.abilities
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
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
display
public boolean displayIf 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
-
displayBars
-
addStats
-
copy
-
localized
- Returns:
- localized ability name; mods should override this.
-