Interactive

abstract class Interactive : Interactable, Actionable

Types

Companion
Link copied to clipboard
object Companion

Functions

actions
Link copied to clipboard
abstract fun actions(): List<String>

The current actions for the entity.

basePoint
Link copied to clipboard
abstract override fun basePoint(): Point

{@inheritDoc}

boundingModel
Link copied to clipboard
fun boundingModel(): BoundingModel?

Gets the current bounding model

fun boundingModel(boundingModel: BoundingModel?)

Sets the bounding model

fun boundingModel(expectedModel: BoundingModel?, boundingModel: BoundingModel?)

Compares and sets the bounding model

bounds
Link copied to clipboard
open override fun bounds(arr: IntArray?)

Sets the boundaries of this entity utilizing an array.

abstract fun bounds(x1: Int, x2: Int, y1: Int, y2: Int, z1: Int, z2: Int)

Sets the boundaries of this entity.

calculateScreenPosition
Link copied to clipboard
abstract fun calculateScreenPosition(): Callable<Point>
centerPoint
Link copied to clipboard
abstract override fun centerPoint(): Point

{@inheritDoc}

click
Link copied to clipboard
open override fun click(): Boolean
open override fun click(action: String?): Boolean
open override fun click(action: String?, option: String?): Boolean
open override fun click(f: Filter<MenuCommand>, useMenu: Boolean): Boolean

{@inheritDoc}

open override fun click(f: (MenuCommand) -> Boolean): Boolean
contains
Link copied to clipboard
abstract operator fun contains(point: Point?): Boolean

Whether or not the entity contains the point.

doSetBounds
Link copied to clipboard
fun doSetBounds(arr: IntArray?): Filter<Interactable?>
draw
Link copied to clipboard
abstract fun draw(g: Graphics)

Renders the entity within the viewport at alpha = 255

interact
Link copied to clipboard
open override fun interact(f: (MenuCommand) -> Boolean): Boolean
open override fun interact(action: String?): Boolean
open override fun interact(f: Filter<MenuCommand>): Boolean
open override fun interact(f: (MenuCommand) -> Boolean, useMenu: Boolean): Boolean
open override fun interact(action: String?, useMenu: Boolean): Boolean
open override fun interact(action: String?, option: String?): Boolean
open override fun interact(f: Filter<MenuCommand>, useMenu: Boolean): Boolean
open override fun interact(action: String?, option: String?, useMenu: Boolean): Boolean

{@inheritDoc}

inViewport
Link copied to clipboard
open override fun inViewport(): Boolean

{@inheritDoc}

open override fun inViewport(checkIfObstructed: Boolean): Boolean

Returns true if the object is currently rendered in the viewport.

nextPoint
Link copied to clipboard
abstract fun nextPoint(): Point

The next game screen point of the entity.

triangles
Link copied to clipboard
open override fun triangles(): Array<Polygon>

The translated model triangles.

valid
Link copied to clipboard
open override fun valid(): Boolean

Properties

boundingModel
Link copied to clipboard
var boundingModel: AtomicReference<BoundingModel?>

Inheritors

Actor
Link copied to clipboard
Component
Link copied to clipboard
GameObject
Link copied to clipboard
GenericItem
Link copied to clipboard
TileMatrix
Link copied to clipboard