Shape
A Shape is a set of org.hexworks.zircon.api.data.Positions representing a geometric formation (line, triangle, rectangle, box, etc). A Shape is the most abstract representation of any graphic object in Zircon and has no associated grid, style, nor characters thus it is useful for templating (like creating multiple versions of the same rectangle with different colors, shades and characters). Any Shape implementation is supposed to be immutable!
Functions
containsAll
Link copied to clipboard
offsetToDefaultPosition
Link copied to clipboard
Offsets this Shape to the default position (column=0,row=0), so offsetting a Shape which contains
(Position(2, 3), Position(3, 4))
will be transformed to ((Position(0, 0), Position(1, 1))
.toTileGraphics
Link copied to clipboard
abstract fun toTileGraphics(tile: Tile, tileset: TilesetResource): TileGraphics
Content copied to clipboard
Properties
Inheritors
DefaultShape
Link copied to clipboard
Sources
(source)
Link copied to clipboard