Package mindustry.ai
Class WaveSpawner
java.lang.Object
mindustry.ai.WaveSpawner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
void
doShockwave
(float x, float y) void
eachGroundSpawn
(Intc2 cons) boolean
boolean
void
reset()
static void
spawnEffect
(float x, float y, float rotation, UnitType u) void
spawnEffect
(mindustry.gen.Unit unit) Applies the standard wave spawn effects to a unit - invincibility, unmoving.void
spawnEffect
(mindustry.gen.Unit unit, float rotation) Applies the standard wave spawn effects to a unit - invincibility, unmoving.void
-
Constructor Details
-
WaveSpawner
public WaveSpawner()
-
-
Method Details
-
getFirstSpawn
-
countSpawns
public int countSpawns() -
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
-
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
-