The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Games::Risk::Map - map being played

SYNOPSIS

    my $id = Games::Risk::Map->new(\%params);

DESCRIPTION

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

METHODS

Constructor

  • my $player = Games::Risk::Map->new( \%params )

Accessors

The following accessors (acting as mutators, ie getters and setters) are available for Games::Risk::Map objects:

  • background()

    the path to the background image for the board.

Object methods

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

  • $map->load_file( \%params )

SEE ALSO

Games::Risk.

AUTHOR

Jerome Quelin, <jquelin at cpan.org>

COPYRIGHT & LICENSE

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