hexgrid v2.0.0 HexGrid.Map
Map for Hexes. Allows for adding/removing tiles and setting data on them.
Summary
Functions
Gets the value from the map
Adds the tile to the map
Creates an empty map
Creates a Hexagonal-shaped map with a given radius
Sets the arbitrary value on a map
Types
Functions
Gets the value from the map.
Adds the tile to the map
Creates an empty map
Examples:
iex> HexGrid.Map.new() {:ok, %HexGrid.Map{}}
Creates a Hexagonal-shaped map with a given radius
Examples:
iex> HexGrid.Map.new_hex(0) {:ok, %HexGrid.Map{data: %{{0, 0, 0} => %{}}}}
Sets the arbitrary value on a map.