TileCompositeBuilder

data class TileCompositeBuilder(size: Size, tiles: MutableMap<Position, Tile>) : Builder<TileComposite>

Creates TileComposites. Defaults:

  • Default Size is ONE (1x1).

Constructors

TileCompositeBuilder
Link copied to clipboard
common
fun TileCompositeBuilder(size: Size = Size.one(), tiles: MutableMap<Position, Tile> = mutableMapOf())

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): TileComposite
Builds an object of type T.
copy
Link copied to clipboard
common
fun copy(size: Size = Size.one(), tiles: MutableMap<Position, Tile> = mutableMapOf()): TileCompositeBuilder
createCopy
Link copied to clipboard
common
open override fun createCopy(): TileCompositeBuilder
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String
withSize
Link copied to clipboard
common
fun withSize(size: Size): TileCompositeBuilder
Sets the size for the new TileComposite.
withTile
Link copied to clipboard
common
fun withTile(position: Position, tile: Tile): TileCompositeBuilder
Adds a Tile at the given Position.
withTiles
Link copied to clipboard
common
fun withTiles(tiles: Map<Position, Tile>): TileCompositeBuilder
Sets the given tiles to be used for the new TileGraphics.

Sources

(source)
Link copied to clipboard