Game::TextMapper::Mapper::Hex - a mapper for hex maps
This class knows how to parse a text containing a hex map description into SVG definitions, and regions. Once the map is built, this class knows how to generate the SVG for the entire map.
This class is derived from Game::TextMapper::Mapper.
It uses Game::TextMapper::Point::Hex to represent points (regions) and Game::TextMapper::Line::Hex to represent lines.
Game::TextMapper::Mapper::Square is a similar class for square maps.
To install Game::TextMapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Game::TextMapper
CPAN shell
perl -MCPAN -e shell install Game::TextMapper
For more information on module installation, please visit the detailed CPAN module installation guide.