NAME
Game::TextMapper::Hex - a hex on a map
SYNOPSIS
use Modern::Perl;
use Game::TextMapper::Hex;
my $hex = Game::TextMapper::Hex->new(x => 1, y => 1, z => 0);
say $hex->svg_region('', [0]);
# <polygon id="hex110" points="50.0,86.6 100.0,173.2 200.0,173.2 250.0,86.6 200.0,0.0 100.0,0.0" />
DESCRIPTION
This class holds information about a hex region: coordinates, a label, and types. Types are the kinds of symbols that can be found in the region: a keep, a tree, a mountain. They correspond to SVG definitions. The class knows how to draw a SVG polygon at the correct coordinates using these definitions.