Games::Risk::Map - map being played
my $id = Games::Risk::Map->new(\%params);
This module implements a map, pointing to the continents, the countries, etc. of the game currently in play.
my $player = Games::Risk::Map->new( \%params )
The following accessors (acting as mutators, ie getters and setters) are available for Games::Risk::Map objects:
Games::Risk::Map
background()
the path to the background image for the board.
my @countries = $map->countries()
Return the list of all countries in the $map.
$map
my $country = $map->country_get($id)
Return the country which id matches $id.
$id
$map->load_file( \%params )
Games::Risk.
Jerome Quelin, <jquelin at cpan.org>
<jquelin at cpan.org>
Copyright (c) 2008 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU GPLv3+.
To install Games::Risk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Risk
CPAN shell
perl -MCPAN -e shell install Games::Risk
For more information on module installation, please visit the detailed CPAN module installation guide.