simplified a structure of UIs a bit

This commit is contained in:
minjaesong
2017-07-16 23:15:32 +09:00
parent bf47b82445
commit d6f2f4158c
29 changed files with 321 additions and 371 deletions

View File

@@ -34,7 +34,7 @@ object GameController : InputAdapter() {
val mouseTileY: Int
get() = (mouseY / FeaturesDrawer.TILE_SIZE).floorInt()
fun processInput(delta: Float) {
fun update(delta: Float) {
// actor process input
if (!ingame.consoleHandler.isTakingControl) {
if (ingame.canPlayerControl) {
@@ -50,14 +50,6 @@ object GameController : InputAdapter() {
}
}
}
else {
ingame.uiContainer.forEach {
it.processInput(delta)
}
}
}
else {
ingame.consoleHandler.processInput(delta)
}