Crate n18map

Source

Modules§

address
Defines coordinate systems for identifying map hexes.
descr
Describe and create map configurations.
map
Maps with spaces for tiles.

Structs§

Coordinates
Identifies how alpha-numeric coordinates translate to map locations.
Descr
A description of each tile’s configuration on a map.
EmptyHexIter
An iterator over each hex in a Map that does not contain a Tile.
HexAddress
A hex location on a Map, identified by row and column.
HexIter
An iterator over each hex in a Map.
Map
A grid of hexes, each of which may contain a Tile.
ParseHexAddressError
The error returns when an alpha-numeric string cannot be parsed as a valid map hex.
TileDescr
A description of a tile’s configuration on a map hex.
TileHexIter
An iterator over each hex in a Map that contains a Tile.

Enums§

FirstRow
Defines where the first row begins.
Letters
Letters may represent columns or rows.

Traits§

Adjacency

Functions§

az_to_num
Parses a string of uppercase ASCII letters and returns their numeric value.
num_to_az
Converts a number into a string of uppercase ASCII letters.
parse_az_and_digit
Parses an alpha-numeric string ([A-Z]+[0-9]+) and returns the numbers corresponding to the alphabetic and numeric segments, respectively.

Type Aliases§

TokensTable
The state of each token space on a tile.