TileGridBuilder

open class TileGridBuilder(size: Size, tileset: TilesetResource) : Builder<TileGrid>

Builds TileGrids. Defaults are:

  • default initialSize is 80x24

  • default tileset is WANDERLUST (CP437)

Constructors

TileGridBuilder
Link copied to clipboard
common
fun TileGridBuilder(size: Size = Size.defaultGridSize(), tileset: TilesetResource = RuntimeConfig.config.defaultTileset)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): TileGrid
Builds an object of type T.
buildScreen
Link copied to clipboard
common
fun buildScreen(): Screen
Creates a TileGrid using this builder's settings and immediately wraps it up in a Screen.
createCopy
Link copied to clipboard
common
open override fun createCopy(): TileGridBuilder
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String
withSize
Link copied to clipboard
common
fun withSize(size: Size): TileGridBuilder
Sets the initial grid Size.
fun withSize(width: Int, height: Int): TileGridBuilder
Sets the initial grid Size.
withTileset
Link copied to clipboard
common
fun withTileset(tileset: TilesetResource): TileGridBuilder
Sets a tileset for this TileGrid.

Sources

(source)
Link copied to clipboard