Game::TextMapper::Mapper::Hex - a mapper for hex maps
This class knows how to parse a text containing a square 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::Square to represent points (regions) and Game::TextMapper::Line::Square to represent lines.
Game::TextMapper::Mapper::Hex is a similar class for hex 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.