NpcInteraction

open class NpcInteraction(npcName: String, npcLocation: Tile?, action: String, actions: List<String>, widgetActions: Set<WidgetAction>?) : NamedEntityInteraction

Constructors

NpcInteraction
Link copied to clipboard
fun NpcInteraction(npcName: String, action: String, actions: List<String>, widgetActions: Set<WidgetAction>? = null)

Functions

findEntity
Link copied to clipboard
open override fun findEntity(): InteractableEntity?
handle
Link copied to clipboard
open override fun handle(): Boolean

Gets overridden

handleWidgetActions
Link copied to clipboard
fun handleWidgetActions(): Boolean

Properties

action
Link copied to clipboard
val action: String
actions
Link copied to clipboard
val actions: List<String>
identifier
Link copied to clipboard
val identifier: String
location
Link copied to clipboard
val location: Tile?
name
Link copied to clipboard
val name: String
npcLocation
Link copied to clipboard
val npcLocation: Tile?
npcName
Link copied to clipboard
val npcName: String
requirements
Link copied to clipboard
val requirements: List<Any>? = null
type
Link copied to clipboard
val type: InteractionType
widgetActions
Link copied to clipboard
val widgetActions: Set<WidgetAction>?