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 TypeMethodDescriptionvoid
Automatically unlocks things with no requirements and no locked parents.void
dispose()
void
init()
boolean
void
void
pause()
void
void
void
playNewSector
(Sector origin, Sector sector, WorldReloader reloader) void
playSector
(Sector sector) void
playSector
(Sector origin, Sector sector) void
resume()
void
setInput
(InputHandler newInput) void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.ApplicationListener
exit, fileDropped, resize
Methods inherited from interface arc.assets.Loadable
getDependencies, getName, loadSync
-
Field Details
-
saves
-
sound
-
input
-
indicators
-
-
Constructor Details
-
Control
public Control()
-
-
Method Details
-
loadAsync
public void loadAsync()- Specified by:
loadAsync
in interfacearc.assets.Loadable
-
checkAutoUnlocks
public void checkAutoUnlocks()Automatically unlocks things with no requirements and no locked parents. -
setInput
-
playMap
-
playMap
-
playSector
-
playSector
-
playNewSector
-
isHighScore
public boolean isHighScore() -
dispose
public void dispose()- Specified by:
dispose
in interfacearc.ApplicationListener
-
pause
public void pause()- Specified by:
pause
in interfacearc.ApplicationListener
-
resume
public void resume()- Specified by:
resume
in interfacearc.ApplicationListener
-
init
public void init()- Specified by:
init
in interfacearc.ApplicationListener
-
update
public void update()- Specified by:
update
in interfacearc.ApplicationListener
-