BaseCharacterTile

abstract class BaseCharacterTile : BaseTile, CharacterTile

Base class for CharacterTiles.

Constructors

BaseCharacterTile
Link copied to clipboard
common
fun BaseCharacterTile()

Functions

asCharacterTile
Link copied to clipboard
common
open override fun asCharacterTile(): Maybe<CharacterTile>
Returns this Tile as a CharacterTile if possible.
asGraphicTile
Link copied to clipboard
common
open override fun asGraphicTile(): Maybe<GraphicalTile>
Returns this Tile as a GraphicalTile if possible.
asImageTile
Link copied to clipboard
common
open override fun asImageTile(): Maybe<ImageTile>
Returns this Tile as an ImageTile if possible.
createCopy
Link copied to clipboard
common
abstract override fun createCopy(): Tile
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
fetchBorderData
Link copied to clipboard
common
open override fun fetchBorderData(): Set<Border>
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toBuilder
Link copied to clipboard
common
open override fun toBuilder(): TileBuilder
Creates a new TileBuilder preconfigured with the contents of this Tile.
toString
Link copied to clipboard
common
open fun toString(): String
withAddedModifiers
Link copied to clipboard
common
open override fun withAddedModifiers(vararg modifiers: Modifier): CharacterTile
Creates a copy of this StyleSet with the given modifiers added.
open override fun withAddedModifiers(modifiers: Set<Modifier>): CharacterTile
Creates a copy of this StyleSet with the given modifiers added.
withBackgroundColor
Link copied to clipboard
common
open override fun withBackgroundColor(backgroundColor: TileColor): CharacterTile
Creates a copy of this StyleSet with the given background color.
withCharacter
Link copied to clipboard
common
open override fun withCharacter(character: Char): CharacterTile
withForegroundColor
Link copied to clipboard
common
open override fun withForegroundColor(foregroundColor: TileColor): CharacterTile
Creates a copy of this StyleSet with the given foreground color.
withModifiers
Link copied to clipboard
common
open override fun withModifiers(vararg modifiers: Modifier): CharacterTile
Creates a copy of this StyleSet with the given modifiers.
open override fun withModifiers(modifiers: Set<Modifier>): CharacterTile
Creates a copy of this StyleSet with the given modifiers.
withNoModifiers
Link copied to clipboard
common
open override fun withNoModifiers(): CharacterTile
Creates a copy of this StyleSet with no modifiers.
withRemovedModifiers
Link copied to clipboard
common
open override fun withRemovedModifiers(vararg modifiers: Modifier): CharacterTile
Creates a copy of this StyleSet with the given modifiers removed.
open override fun withRemovedModifiers(modifiers: Set<Modifier>): CharacterTile
Creates a copy of this StyleSet with the given modifiers removed.
withStyle
Link copied to clipboard
common
open override fun withStyle(style: StyleSet): CharacterTile
Returns a copy of this Tile with the specified style.

Properties

backgroundColor
Link copied to clipboard
common
open override val backgroundColor: TileColor
cacheKey
Link copied to clipboard
common
abstract val cacheKey: String
A unique and immutable cache key for this object.
character
Link copied to clipboard
common
abstract val character: Char
foregroundColor
Link copied to clipboard
common
open override val foregroundColor: TileColor
hasBorder
Link copied to clipboard
common
open override val hasBorder: Boolean
isBlinking
Link copied to clipboard
common
open override val isBlinking: Boolean
isCrossedOut
Link copied to clipboard
common
open override val isCrossedOut: Boolean
isEmpty
Link copied to clipboard
common
open override val isEmpty: Boolean
Tells whether this Tileis an empty Tile (it is the Tile.empty instance).
isHorizontalFlipped
Link copied to clipboard
common
open override val isHorizontalFlipped: Boolean
isNotEmpty
Link copied to clipboard
common
open override val isNotEmpty: Boolean
Tells whether this Tileis not an empty Tile (it is not the Tile.empty instance).
isOpaque
Link copied to clipboard
common
open override val isOpaque: Boolean
isUnderlined
Link copied to clipboard
common
open override val isUnderlined: Boolean
isVerticalFlipped
Link copied to clipboard
common
open override val isVerticalFlipped: Boolean
modifiers
Link copied to clipboard
common
open override val modifiers: Set<Modifier>
styleSet
Link copied to clipboard
common
abstract val styleSet: StyleSet
tileType
Link copied to clipboard
common
open override val tileType: TileType

Inheritors

DefaultCharacterTile
Link copied to clipboard

Sources

(source)
Link copied to clipboard