Files
Terrarum/src/net/torvald/terrarum/gameactors/Controllable.kt
Song Minjae 4bafccdaa0 still WIP inventory impl, held item impl
Former-commit-id: 9468cfae21ff09c3dd30352a849910364e01d780
Former-commit-id: 50247ccebf3284f739877a1d6c6d8574449a9824
2016-12-14 00:28:42 +09:00

18 lines
385 B
Kotlin

package net.torvald.terrarum.gameactors
import org.dyn4j.geometry.Vector2
import org.newdawn.slick.GameContainer
import org.newdawn.slick.Input
/**
* Actors that has movement controlled by Keyboard or AI
*
* Created by minjaesong on 15-12-31.
*/
interface Controllable {
fun processInput(gc: GameContainer, delta: Int, input: Input)
fun keyPressed(key: Int, c: Char)
}