Overworld

class Overworld(val identifier: Identifier, var description: Description) : ExaminableObject

Provides an overworld which is a container of Region. The overwold has an identifier and a description.

Constructors

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

Provides an overlord which is a container of Region. The overwold has an identifier and a description.

constructor(identifier: Identifier, description: Description)

Properties

Link copied to clipboard
open override val attributes: AttributeManager

An AttributeManager that provides management of all Attribute for this Examinable.

Link copied to clipboard
open override var commands: List<CustomCommand>

A list of CustomCommand that this Examinable provides.

Link copied to clipboard

Returns the current Region.

Link copied to clipboard
open override var description: Description

A Description that describes this object.

Link copied to clipboard

Provides a callback for handling examination of this object.

Link copied to clipboard
open override var identifier: Identifier

An Identifier that can be used to identify this object.

Link copied to clipboard
open override var isPlayerVisible: Boolean

Returns true if visible to the player, else false.

Link copied to clipboard

Returns a list of Region that make up this Overworld.

Functions

Link copied to clipboard
fun addRegion(region: Region)

Add a region to this Overworld.

Link copied to clipboard
open override fun examine(scene: ExaminationScene): ExaminationResult

Examine this object to obtain an ExaminationResult. The scene that the examination occurs in must be specified.

Link copied to clipboard
fun findRegion(regionName: String): Region?

Find a Region within this Overworld, by regionName.

Link copied to clipboard
fun move(region: Region): Boolean

Move to a specified region. Returns true if the move was successful, else false.

Link copied to clipboard
fun removeRegion(region: Region)

Remove a region from this Overworld.

Link copied to clipboard
open override fun toString(): String