Games::Risk::Map::Card - map card
my $card = Games::Risk::Map::Card->new(\%params);
This module implements a map card, with all its characteristics.
my $card = Games::Risk::Map::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::Map::Card objects:
Games::Risk::Map::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, <jquelin at cpan.org>
<jquelin at cpan.org>
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+.
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.