Package mindustry.core
Class Logic
java.lang.Object
mindustry.core.Logic
- All Implemented Interfaces:
arc.ApplicationListener
Logic module.
Handles all logic for entities and waves.
Handles game state events.
Does not store any game state itself.
This class should not call any outside methods to change state of modules, but instead fire events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()static voidbooleanvoidplay()Adds starting items, resets wave time, and sets state to playing.static voidresearched(Content content) voidreset()voidrunWave()static voidvoidskipWave()voidupdate()static voidupdateGameOver(Team winner) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface arc.ApplicationListener
exit, fileDropped, init, pause, resize, resume
-
Constructor Details
-
Logic
public Logic()
-
-
Method Details
-
play
public void play()Adds starting items, resets wave time, and sets state to playing. -
reset
public void reset() -
skipWave
public void skipWave() -
runWave
public void runWave() -
updateWeather
protected void updateWeather() -
sectorCapture
public static void sectorCapture() -
updateGameOver
-
gameOver
-
researched
-
dispose
public void dispose()- Specified by:
disposein interfacearc.ApplicationListener
-
update
public void update()- Specified by:
updatein interfacearc.ApplicationListener
-
isWaitingWave
public boolean isWaitingWave()- Returns:
- whether the wave timer is paused due to enemies
-