Renderable

interface Renderable : Boundable, CanBeHidden, TilesetOverride

Represents an object that can be rendered on the screen at a specific (Renderable.position).

Functions

containsBoundable
Link copied to clipboard
common
abstract infix fun containsBoundable(boundable: Boundable): Boolean
Tells whether this boundable contains the other boundable.
containsPosition
Link copied to clipboard
common
abstract infix fun containsPosition(position: Position): Boolean
Tells whether position is within this boundable's bounds.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
intersects
Link copied to clipboard
common
abstract infix fun intersects(boundable: Boundable): Boolean
Tells whether this Boundable intersects with the other boundable.
render
Link copied to clipboard
common
abstract fun render(graphics: TileGraphics)
Renders this Renderable onto the given TileGraphics object.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

height
Link copied to clipboard
common
open override val height: Int
hiddenProperty
Link copied to clipboard
common
abstract override val hiddenProperty: Property<Boolean>
isHidden
Link copied to clipboard
common
abstract override var isHidden: Boolean
position
Link copied to clipboard
common
open val position: Position
Shorthand for Rect.position
rect
Link copied to clipboard
common
abstract val rect: Rect
A Rect contains the coordinates and the size of a Boundable.
size
Link copied to clipboard
common
abstract override val size: Size
tileset
Link copied to clipboard
common
abstract override var tileset: TilesetResource
The (mutable) tileset value.
tilesetProperty
Link copied to clipboard
common
abstract val tilesetProperty: Property<TilesetResource>
A Property that wraps the tileset and offers data binding and observability features.
width
Link copied to clipboard
common
open override val width: Int
x
Link copied to clipboard
common
open val x: Int
Shorthand for Rect.x
y
Link copied to clipboard
common
open val y: Int
Shorthand for Rect.y

Inheritors

InternalComponent
Link copied to clipboard
InternalLayer
Link copied to clipboard

Sources

(source)
Link copied to clipboard