Files
Terrarum/src/net/torvald/terrarum/gameactors/AIControlled.kt
2017-09-20 14:36:40 +09:00

23 lines
634 B
Kotlin

package net.torvald.terrarum.gameactors
import net.torvald.terrarum.gameactors.ai.ActorAI
/**
* Note: AI-controlled actor must be 'Controllable'
*
* Created by minjaesong on 2016-01-31.
*/
interface AIControlled {
val ai: ActorAI
fun moveLeft(amount: Float = 1f)
fun moveRight(amount: Float = 1f)
fun moveUp(amount: Float = 1f)
fun moveDown(amount: Float = 1f)
fun moveJump(amount: Float = 1f)
/** fly toward arbitrary angle WARNING: the map is looped! */
fun moveTo(bearing: Double)
/** fly toward arbitrary coord WARNING: the map is looped! */
fun moveTo(toX: Double, toY: Double)
}