Package mindustry.ai

Class WaveSpawner

java.lang.Object
mindustry.ai.WaveSpawner

public class WaveSpawner extends Object
  • Constructor Details

    • WaveSpawner

      public WaveSpawner()
  • Method Details

    • getFirstSpawn

      @Nullable public Tile getFirstSpawn()
    • countSpawns

      public int countSpawns()
    • getSpawns

      public Seq<Tile> getSpawns()
    • playerNear

      public boolean playerNear()
      Returns:
      true if the player is near a ground spawn point.
    • spawnEnemies

      public void spawnEnemies()
    • doShockwave

      public void doShockwave(float x, float y)
    • eachGroundSpawn

      public void eachGroundSpawn(Intc2 cons)
    • countGroundSpawns

      public int countGroundSpawns()
    • countFlyerSpawns

      public int countFlyerSpawns()
    • isSpawning

      public boolean isSpawning()
    • reset

      public void reset()
    • spawnEffect

      public void spawnEffect(mindustry.gen.Unit unit)
      Applies the standard wave spawn effects to a unit - invincibility, unmoving.
    • spawnEffect

      public void spawnEffect(mindustry.gen.Unit unit, float rotation)
      Applies the standard wave spawn effects to a unit - invincibility, unmoving.
    • spawnEffect

      public static void spawnEffect(float x, float y, float rotation, UnitType u)