Package mindustry.core
Class Control
java.lang.Object
mindustry.core.Control
- All Implemented Interfaces:
arc.ApplicationListener,arc.assets.Loadable
Control module.
Handles all input, saving and keybinds.
Should not handle any logic-critical state.
This class is not created in the headless server.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAutomatically unlocks things with no requirements and no locked parents.voiddispose()voidinit()booleanvoidvoidloadSync()voidpause()voidvoidvoidplayNewSector(Sector origin, Sector sector, WorldReloader reloader) voidplayNewSector(Sector origin, Sector sector, WorldReloader reloader, WorldParams params, Runnable beforePlay) voidplaySector(Sector sector) voidplaySector(Sector origin, Sector sector) voidresume()voidsetInput(InputHandler newInput) voidupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface arc.ApplicationListener
exit, fileDropped, resizeMethods inherited from interface arc.assets.Loadable
getDependencies, getName
-
Field Details
-
saves
-
sound
-
input
-
indicators
-
-
Constructor Details
-
Control
public Control()
-
-
Method Details
-
loadAsync
public void loadAsync()- Specified by:
loadAsyncin interfacearc.assets.Loadable
-
loadSync
public void loadSync()- Specified by:
loadSyncin interfacearc.assets.Loadable
-
checkAutoUnlocks
public void checkAutoUnlocks()Automatically unlocks things with no requirements and no locked parents. -
setInput
-
playMap
-
playMap
-
playSector
-
playSector
-
playNewSector
-
playNewSector
public void playNewSector(@Nullable Sector origin, Sector sector, WorldReloader reloader, WorldParams params, @Nullable Runnable beforePlay) -
isHighScore
public boolean isHighScore() -
dispose
public void dispose()- Specified by:
disposein interfacearc.ApplicationListener
-
pause
public void pause()- Specified by:
pausein interfacearc.ApplicationListener
-
resume
public void resume()- Specified by:
resumein interfacearc.ApplicationListener
-
init
public void init()- Specified by:
initin interfacearc.ApplicationListener
-
update
public void update()- Specified by:
updatein interfacearc.ApplicationListener
-