ActorAI's walk speed can be adjusted now

Former-commit-id: 556677bddf9cc29358471c81f7febc40e8e6cc7d
Former-commit-id: 35b994001dd034e166ba6c6709cb92fd5dca073e
This commit is contained in:
Song Minjae
2016-12-28 00:17:52 +09:00
parent 2e2e4a0281
commit e253641471
7 changed files with 135 additions and 77 deletions

View File

@@ -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)