NAME
RPG::Traveller::Starmap::Subsector - Encapsulates a (Mega)Traveller subsector
VERSION
version 0.500
SYNOPSIS
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();
METHODS
name
A getter/setter method for the name attribute.
posit
A getter/setter method for the posit attribute. Posit is the "letter" representing the position within a sector for this subsector.
density
A getter/setter method for the density of the subsector.
generate
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.
SEE ALSO
AUTHOR
Peter L. Berghold <peter@berghold.net>
COPYRIGHT AND LICENSE
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.