Games::Risk::Map - map being played
version 3.112590
This module implements a map, pointing to the continents, the countries, etc. of the game currently in play.
A Games::Risk::Deck object holding the cards.
my $author = Games::Risk::Map::Foobar->author;
The map author, needs to be overriden by sub-classes.
my $gspath = $map->greyscale;
The path to the greyscale bitmap for the board.
my $name = Games::Risk::Map::Foobar->name;
The short map identifier, needs to be overriden by sub-classes.
my $title = Games::Risk::Map::Foobar->title;
The map title, needs to be overriden by sub-classes.
my $dir = $map->sharedir;
Return the path to the private directory holding the map files.
my $bgpath = $map->background;
Return the path to the background image for the board.
my @owned = $map->continents_owned;
Return a list with all continents that are owned by a single player.
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
Jerome Quelin
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
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.