Games::Risk::Card - map card
version 3.101390
my $card = Games::Risk::Card->new(\%params);
This module implements a map card, with all its characteristics.
my $card = Games::Risk::Card->new( \%params )
Create a new card. Mandatory param is type, and there's an optional param country.
type
country
The following accessors (acting as mutators, ie getters and setters) are available for Games::Risk::Card objects:
Games::Risk::Card
country()
country corresponding to the card.
type()
the type of the card: artillery, cavalry, infantery or wildcard
artillery
cavalry
infantery
wildcard
$card->destroy()
Remove all circular references of $card, to prevent memory leaks.
$card
Games::Risk.
Jerome Quelin
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Games::Risk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Risk
CPAN shell
perl -MCPAN -e shell install Games::Risk
For more information on module installation, please visit the detailed CPAN module installation guide.