GridRegionMapBuilder

class GridRegionMapBuilder(lockedExit: Char = 'x', unlockedExit: Char = ' ', emptySpace: Char = ' ', verticalBoundary: Char = '|', horizontalBoundary: Char = '-', lowerLevel: Char = '.', up: Char = '^', down: Char = 'v', player: Char = 'O', currentFloorIndicator: Char = '*', showLowerFloors: Boolean = true)

Provides a region map builder.

Constructors

Link copied to clipboard
constructor(lockedExit: Char = 'x', unlockedExit: Char = ' ', emptySpace: Char = ' ', verticalBoundary: Char = '|', horizontalBoundary: Char = '-', lowerLevel: Char = '.', up: Char = '^', down: Char = 'v', player: Char = 'O', currentFloorIndicator: Char = '*', showLowerFloors: Boolean = true)

Functions

Link copied to clipboard
fun build(gridStringBuilder: GridStringBuilder, region: Region, x: Int, y: Int, maxWidth: Int, maxHeight: Int)

Build a map of a Region on a gridStringBuilder with a region and a viewPoint, with a width and height. Return the end FramePosition.