Utils
object Utils
Content copied to clipboard
Functions
get Walkable Neighbor
Link copied to clipboard
get Walkable Neighbors
Link copied to clipboard
fun Locatable.getWalkableNeighbors(allowSelf: Boolean = true, diagonalTiles: Boolean = false, checkForWalls: Boolean = true): MutableList<Tile>
Content copied to clipboard
handle Menu
Link copied to clipboard
Requires menu to be open
walk And Interact
Link copied to clipboard
fun walkAndInteract(target: InteractableEntity?, action: String, alwaysWalk: Boolean = false, allowWalk: Boolean = true, selectItem: Int = -1): Boolean
Content copied to clipboard
fun walkAndInteract(target: InteractableEntity?, filter: Filter<MenuCommand>, alwaysWalk: Boolean = false, allowWalk: Boolean = true, selectItem: Int = -1): Boolean
Content copied to clipboard
Takes a walking step entity is not visible or just too far away (distance 12)