Crate n18map

Source

Modules§

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

Structs§

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

Enums§

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

Traits§

Functions§

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

Type Aliases§