NAME

Games::Risk::Map - map being played

VERSION

version 4.000

DESCRIPTION

This module implements a map, pointing to the continents, the countries, etc. of the game currently in play.

ATTRIBUTES

continents

cards

A Games::Risk::Deck object holding the cards.

author

my $author = Games::Risk::Map::Foobar->author;

The map author, needs to be overriden by sub-classes.

greyscale

my $gspath = $map->greyscale;

The path to the greyscale bitmap for the board.

METHODS

name

my $name = Games::Risk::Map::Foobar->name;

The short map identifier, needs to be overriden by sub-classes.

title

my $title = Games::Risk::Map::Foobar->title;

The map title, needs to be overriden by sub-classes.

sharebase

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).

sharedir

my $dir = $map->sharedir;

Return the path to the private directory holding the map files.

localedir

my $dir = $map->localedir;

Return the path to the private directory holding the locale files.

background

my $bgpath = $map->background;

Return the path to the background image for the board.

continents_owned

my @owned = $map->continents_owned;

Return a list with all continents that are owned by a single player.

countries

my @countries = $map->countries;

Return the list of all countries in the $map.

country_get

my $country = $map->country_get($id);

Return the country which id matches $id.

AUTHOR

Jerome Quelin

COPYRIGHT AND LICENSE

This software is Copyright (c) 2008 by Jerome Quelin.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007