mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-19 06:54:05 +09:00
Actually utilising ActorAI interface to support AIs written in Kotlin as well as in Lua
Former-commit-id: 53901f5a5d53b33c4254091ec507be82289d57fd Former-commit-id: 86ce8d2a646a1564ee5e33ef07c5affb338c028e
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
package net.torvald.terrarum.gameactors
|
||||
|
||||
import net.torvald.terrarum.gameactors.ai.ActorAI
|
||||
|
||||
/**
|
||||
* Note: AI-controlled actor must be 'Controllable'
|
||||
*
|
||||
* Created by minjaesong on 16-01-31.
|
||||
*/
|
||||
interface AIControlled {
|
||||
val scriptPath: String
|
||||
val ai: ActorAI
|
||||
|
||||
fun moveLeft(amount: Float = 1f)
|
||||
fun moveRight(amount: Float = 1f)
|
||||
|
||||
Reference in New Issue
Block a user