NAME
Games::RolePlay::MapGen::Generator::SubMap - Given a MapGen object and some co-ordinates, generate a sub-map
SYNOPSIS
my
$map
= new Games::RolePlay::MapGen;
$map
->set_generator(
"XMLImport"
);
$map
->generate(
xml_input_file
=>
"map.xml"
);
my
$sub_map
= new Games::RolePlay::MapGen;
$sub_map
->set_generator(
"SubMap"
);
$sub_map
->generate(
map_input
=>
$map
,
upper_left
=>[5,5],
lower_right
=>[10,10] );
The MapGen base object also knows a shortcut to perform the above:
my
$submap
= Games::RolePlay::MapGen->sub_map(
$map
, [5,5], [10,10]);
SEE ALSO
Games::RolePlay::MapGen