NAME

Games::Risk::Continent - continent object

VERSION

version 4.000

DESCRIPTION

This module implements a map continent, with all its characteristics. The word continent is a bit loose, since for some maps it can be either a region, a suburb... or a planet! :-)

ATTRIBUTES

id

Unique id assigned to the continent.

bonus

Number of bonus armies given when a player controls every country in the continent.

name

Continent name.

color

Color of the continent to flash it.

map

Reference to the parent map (weak ref to a Games::Risk::Map object).

countries

The Games::Risk::Country objects belonging to this continent.

METHODS

is_owned

my $p0wned = $continent->is_owned( $player );

Return true if $player is the owner of all $continent's countries.

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