RPG::Traveller::Starmap::Subsector - Encapsulates a (Mega)Traveller subsector
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
Peter L. Berghold <firstname.lastname@example.org>
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.