Arena

data class Arena(val id: UUID, val name: String, var challenger: String?, var defender: String?, var inUse: Boolean)(source)

Represents an Arena with unique id and name.

Constructors

Link copied to clipboard
fun Arena(id: UUID, name: String)

Constructs a new Arena with id and name.

Link copied to clipboard
fun Arena(id: UUID, name: String, challenger: String?, defender: String?, inUse: Boolean)

Properties

Link copied to clipboard

the challenger location string representation, can be null.

Link copied to clipboard
val challengerLoc: Location?

Returns the Location object for the challenger.

Link copied to clipboard

the defender location string representation, can be null.

Link copied to clipboard
val defenderLoc: Location?

Returns the Location object for the defender.

Link copied to clipboard
val id: UUID

the unique id of the arena.

Link copied to clipboard

boolean flag indicating whether the arena is currently in use.

Link copied to clipboard

the name of the arena.