Object

interface Object

The basic class of all the render-able and calculated object.

Author

KKoishi_

Inheritors

Properties

Link copied to clipboard
abstract val uuid: UUID

The universally unique identifier(UUID) of this object

Functions

Link copied to clipboard
abstract fun collide(o: Object): Boolean

Test if the object collide with another object o.

Link copied to clipboard
abstract fun paint(g: Graphics2D)

Render the object.

Link copied to clipboard
abstract fun update(): Boolean

Check the state of the object, and if this need to be removed, true should be returned.