RegionMaker

class RegionMaker(identifier: Identifier, description: Description)

A helper for making a Region, with a specified identifier and description.

Constructors

Link copied to clipboard
constructor(identifier: String, description: String)

A helper for making a Region, with a specified identifier and description.

constructor(identifier: Identifier, description: Description)

Functions

Link copied to clipboard
fun canPlaceRoom(x: Int, y: Int, z: Int): Boolean

Determines if a Room can be placed at a specified x, y and z position.

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

Get the Room at the specified x, y and z position. If no Room exists in that location then null is returned.

Link copied to clipboard

Get all of the registered RoomPosition.

Link copied to clipboard
fun make(): Region

Make a new Region.

fun make(startRoom: Room): Region

Make a new Region with a specified startRoom.

fun make(startRoomName: String): Region

Make a new Region with a specified startRoomName.

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

Sets the value at the specified x, y and z position.