mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 14:04:05 +09:00
API: AI control on HumanoidNPC
Former-commit-id: ca8fe2f23f6d1bc36f86445017f9a3fdfe6fa2de Former-commit-id: a0f3233a44a79b4f5bbc9f0c8f19b71df11bedd6
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
package net.torvald.terrarum.gameactors
|
||||
|
||||
import net.torvald.terrarum.gameactors.ai.ActorAI
|
||||
|
||||
/**
|
||||
* Note: AI-controlled actor must be 'Controllable'
|
||||
*
|
||||
* Created by minjaesong on 16-03-14.
|
||||
* Created by minjaesong on 16-01-31.
|
||||
*/
|
||||
interface AIControlled {
|
||||
val scriptPath: String
|
||||
|
||||
fun moveLeft()
|
||||
fun moveRight()
|
||||
fun moveUp()
|
||||
fun moveDown()
|
||||
fun moveJump()
|
||||
|
||||
/** 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)
|
||||
}
|
||||
Reference in New Issue
Block a user