LevelObject

class LevelObject(val block: Block, val coordinate: Coordinate) : Comparable<LevelObject>

Utility Object for representing a Level Block and its Coordinate.

Constructors

Link copied to clipboard
constructor(block: Block, coordinate: Coordinate)
constructor(block: Block, x: Int, y: Int)

Creates a new LevelObject with the given block and coordinate.

constructor(name: String, x: Int, y: Int)

Creates a new LevelObject with the given block and coordinate.

constructor(name: String, properties: Map<String, Any>, x: Int, y: Int)

Creates a new LevelObject with the given block and coordinate.

constructor(block: Block, x: Int, y: Int, z: Int)

Creates a new LevelObject with the given block and coordinate.

constructor(name: String, x: Int, y: Int, z: Int)

Creates a new LevelObject with the given block and coordinate.

constructor(name: String, properties: Map<String, Any>, x: Int, y: Int, z: Int)

Creates a new LevelObject with the given block and coordinate.

Properties

Link copied to clipboard

The block of this object.

Link copied to clipboard

The coordinate of this object.

Functions

Link copied to clipboard
open operator override fun compareTo(other: LevelObject): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String