Package org.hexworks.zircon.api.extensions

Functions

abbreviate
Link copied to clipboard
common
fun UUID.abbreviate(): CharSequence
Abbreviates this UUID.
hide
Link copied to clipboard
common
fun Layer.hide()
onDisabledChanged
Link copied to clipboard
common
fun CanBeDisabled.onDisabledChanged(fn: (ObservableValueChanged<Boolean>) -> Unit): Subscription
show
Link copied to clipboard
common
fun Layer.show()
toAWTColor
Link copied to clipboard
fun TileColor.toAWTColor(): Color
Extension for easy conversion between TileColor and awt Color.
toCharacterTile
Link copied to clipboard
common
fun Char.toCharacterTile(styleSet: StyleSet = StyleSet.defaultStyle()): CharacterTile
toCharacterTileString
Link copied to clipboard
common
fun String.toCharacterTileString(styleSet: StyleSet = StyleSet.defaultStyle(), textWrap: TextWrap = TextWrap.WRAP, size: Size = Size.create(length, 1)): CharacterTileString
toScreen
Link copied to clipboard
common
fun TileGrid.toScreen(): Screen
toTileComposite
Link copied to clipboard
common
fun Iterable<Pair<Position, Tile>>.toTileComposite(size: Size): TileComposite
Transforms an Iterable of Position to Tiles to a TileImage with the given size and tileset.
fun Map<Position, Tile>.toTileComposite(size: Size): TileComposite
Transforms the given Map to a TileComposite with the given size.
toTileGraphics
Link copied to clipboard
common
fun Iterable<Pair<Position, Tile>>.toTileGraphics(size: Size, tileset: TilesetResource): TileGraphics
Transforms an Iterable of Position to Tiles to a TileGraphics with the given size and tileset.
fun Map<Position, Tile>.toTileGraphics(size: Size, tileset: TilesetResource): TileGraphics
Transforms the given Map to a TileGraphics with the given size and tileset.
toTileImage
Link copied to clipboard
common
fun Iterable<Pair<Position, Tile>>.toTileImage(size: Size, tileset: TilesetResource): TileImage
Transforms an Iterable of Position to Tiles to a TileImage with the given size and tileset.
fun Map<Position, Tile>.toTileImage(size: Size, tileset: TilesetResource): TileImage
Transforms the given Map to a TileImage with the given size and tileset.
transform
Link copied to clipboard
common
fun List<Tile>.transform(tileTransformer: (Tile) -> Tile): List<Tile>
transformIndexed
Link copied to clipboard
common
fun List<Tile>.transformIndexed(transformer: (Int, Tile) -> Tile): List<Tile>

Properties

isEnabled
Link copied to clipboard
common
var CanBeDisabled.isEnabled: Boolean