Matrix

class Matrix(rooms: Array<Array<Array<Room>>>)

Provides a 3D matrix for representing collections of Room, specified with the rooms parameter.

Constructors

Link copied to clipboard
constructor(rooms: Array<Array<Array<Room>>>)

Properties

Link copied to clipboard
val depth: Int

Get the depth of this Matrix.

Link copied to clipboard
val height: Int

Get the height of this Matrix.

Link copied to clipboard

Get if this is empty.

Link copied to clipboard
val width: Int

Get the width of this Matrix.

Functions

Link copied to clipboard
operator fun get(x: Int, y: Int, z: Int): Room

Get a Room at a specified x, y and z location.

Link copied to clipboard

Get this Matrix as a simple List.