The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Game::TextMapper::Alpine - generate an alpine landscape

DESCRIPTION

This fills the map with some mountains and then traces the water flow down to the sea and off the map. With water, forests grow; but if the area remains at the same altitude, swamps form.

Settlements are placed at random in the habitable zones, but far enough from each other, and connected by trails.

In order to support hex and square maps, this class uses roles to implement coordinates, neighbours, and all that. This is why you need to specify the role before creating an instance of this class:

    return Game::TextMapper::Schroeder::Alpine
        ->with_roles('Game::TextMapper::Schroeder::Hex')->new()
        ->generate_map(@params);

SEE ALSO

Game::TextMapper::Schroeder::Base Game::TextMapper::Schroeder::Hex Game::TextMapper::Schroeder::Square