Entity

interface Entity

A thing in the game world with a position, read as x and y.

The position is derived from the implementing entity's own geometry, never stored beside it: entities are immutable values that move by rebinding, so a moved entity is a new value whose x and y read the new place.

Inheritors

Properties

Link copied to clipboard
abstract val x: Double

The position's x coordinate.

Link copied to clipboard
abstract val y: Double

The position's y coordinate.