mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-20 15:34:05 +09:00
ActorAI's walk speed can be adjusted now
Former-commit-id: 556677bddf9cc29358471c81f7febc40e8e6cc7d Former-commit-id: 35b994001dd034e166ba6c6709cb92fd5dca073e
This commit is contained in:
@@ -8,11 +8,11 @@ package net.torvald.terrarum.gameactors
|
||||
interface AIControlled {
|
||||
val scriptPath: String
|
||||
|
||||
fun moveLeft()
|
||||
fun moveRight()
|
||||
fun moveUp()
|
||||
fun moveDown()
|
||||
fun moveJump()
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user