
Games::Risk::Map - map being played

version 3.112820

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 = $self->sharebase;
Return the path to the base share directory to use (either the games-risk one, or one of the extra maps dists).
my $dir = $map->sharedir;
Return the path to the private directory holding the map files.
my $dir = $map->localedir;
Return the path to the private directory holding the locale 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.
my $country = $map->country_get($id);
Return the country which id matches $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