mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 05:24:06 +09:00
23 lines
634 B
Kotlin
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)
|
|
} |