mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
Former-commit-id: 9468cfae21ff09c3dd30352a849910364e01d780 Former-commit-id: 50247ccebf3284f739877a1d6c6d8574449a9824
18 lines
385 B
Kotlin
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)
|
|
|
|
} |