Games::Risk::Card - map card


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

Index


NAME

Top

Games::Risk::Card - map card

VERSION

Top

version 3.103040

SYNOPSIS

Top

    my $card = Games::Risk::Card->new(\%params);

DESCRIPTION

Top

This module implements a map card, with all its characteristics.

METHODS

Top

Constructor

* my $card = Games::Risk::Card->new( \%params )

Create a new card. Mandatory param is type, and there's an optional param country.

Accessors

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

* country()

country corresponding to the card.

* type()

the type of the card: artillery, cavalry, infantery or wildcard

Methods

* $card->destroy()

Remove all circular references of $card, to prevent memory leaks.

SEE ALSO

Top

Games::Risk.

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


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