RPG::Traveller::Starmap::Subsector - Encapsulates a (Mega)Traveller subsector
version 0.500
use RPG::Traveller::Starmap::Constants qw/ :densities / ; use RPG::Traveller::Starmap::Subsector; my $subsector = new RPG::Traveller::Starmap::Subsector; $subsector->density(RIFT); # from RPG::Traveller::Starmap::Constants $subsector->posit('C'); $subsector->name('Regina'); $subsector->generate();
A getter/setter method for the name attribute.
A getter/setter method for the posit attribute. Posit is the "letter" representing the position within a sector for this subsector.
A getter/setter method for the density of the subsector.
This actually performs the generation of the subsector by checking to see where each parsec within the subsector is occupied based on the density parameter.
density
Peter L. Berghold <peter@berghold.net>
This software is copyright (c) 2013 by Peter L. Berghold.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install RPG::Traveller::Starmap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPG::Traveller::Starmap
CPAN shell
perl -MCPAN -e shell install RPG::Traveller::Starmap
For more information on module installation, please visit the detailed CPAN module installation guide.