Class UnitSpawnAbility

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

public class UnitSpawnAbility extends Ability
  • Field Details

    • unit

      public UnitType unit
    • spawnTime

      public float spawnTime
    • spawnX

      public float spawnX
    • spawnY

      public float spawnY
    • spawnEffect

      public Effect spawnEffect
    • parentizeEffects

      public boolean parentizeEffects
    • timer

      protected float timer
  • Constructor Details

    • UnitSpawnAbility

      public UnitSpawnAbility(UnitType unit, float spawnTime, float spawnX, float spawnY)
    • UnitSpawnAbility

      public UnitSpawnAbility()
  • 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
    • localized

      public String localized()
      Overrides:
      localized in class Ability
      Returns:
      localized ability name; mods should override this.