Dungeon

object Dungeon

In this class everything Dungeon map related is dispatched. It is also used to post various dungeon related events to be used within the Modules.

Based on FunnyMap by Harry282.

Author

Aton

Functions

Link copied to clipboard
@JvmName(name = "getCurrentRoomFromCoordinates")
fun getCurrentRoom(): Room?

Returns the room the player is currently in. Includes boss room.

Link copied to clipboard
fun getDungeonTabList(): List<Pair<NetworkPlayerInfo, String>>?
Link copied to clipboard
@JvmName(name = "getDungeonTileDefault")
fun getDungeonTile(column: Int, row: Int): Tile?

Gets the corresponding Tile from dungeonList but first performs a check whether the indices are in range.

inline fun <T : Tile> getDungeonTile(column: Int, row: Int): T?

Gets the corresponding Tile from dungeonList but first performs a check whether the indices are in range. It is attempted to cast the Tile to T, if not possible returns null.

Link copied to clipboard
@JvmName(name = "getDungeonTileListDefault")
fun getDungeonTileList(): List<Tile?>

Returns the dungeonList as an immutable List.

inline fun <T : Tile> getDungeonTileList(): List<T>

Returns the dungeonList filtered for the supplied Tile Type.

Link copied to clipboard
fun onChat(event: ClientChatReceivedEvent)
Link copied to clipboard

Update visited rooms when room is changed. This event is posted whenever you, the Player, change the Tile you are in.

Link copied to clipboard
fun onTick(event: TickEvent.ClientTickEvent)
Link copied to clipboard
fun onWorldLoad(event: WorldEvent.Unload)
Link copied to clipboard
fun reset()

Rests most of the dungeon properties. Other properties which are not reset here are reset in onWorlLoad.

Link copied to clipboard
fun setDungeonTile(column: Int, row: Int, tile: Tile?): Boolean

Sets the corresponding value from dungeonList but first performs a check whether the indices are in range.

Properties

Link copied to clipboard
var cryptCount: Int = 0
Link copied to clipboard
Link copied to clipboard
var currentRoomPair: Pair<Room, Int>? = null

Contains the current room and its rotation. Updated every tick. The rotation is based on the clipConfig. For extras Block rotations refer to Extras.currentExtrasRoom.

Link copied to clipboard

Contains all the teammates in the current dungeon. Also contains the Player.

Link copied to clipboard
var fullyScanned: Boolean = false
Link copied to clipboard
Link copied to clipboard
var hasRunStarted: Boolean = false
Link copied to clipboard
var inBoss: Boolean = false
Link copied to clipboard
var mimicFound: Boolean = false
Link copied to clipboard
Link copied to clipboard
const val roomSize: Int = 32
Link copied to clipboard
const val startX: Int
Link copied to clipboard
const val startZ: Int
Link copied to clipboard
var totalSecrets: Int = 0
Link copied to clipboard
Link copied to clipboard
var witherDoors: Int = 0