Games::Risk::Map - map being played


Games-Risk documentation  | view source Contained in the Games-Risk distribution.

Index


NAME

Top

Games::Risk::Map - map being played

VERSION

Top

version 3.103040

SYNOPSIS

Top

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

DESCRIPTION

Top

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

METHODS

Top

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.

* greyscale()

the path to the greyscale bitmap for the board.

Object methods

* $map->destroy()

Break all circular references in $map, to prevent memory leaks.

* my $card = $map->card_get()

Return the next card from the cards stack.

* $map->card_return( $card )

Push back a $card in the card stack.

* my @continents = $map->continents()

Return the list of all continents in the $map.

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

* $map->load_file( \%params )

SEE ALSO

Top

Games::Risk.

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


Games-Risk documentation  | view source Contained in the Games-Risk distribution.