NAME
Games::Risk::Card - map card
VERSION
version 3.101511
SYNOPSIS
my $card = Games::Risk::Card->new(\%params);
DESCRIPTION
This module implements a map card, with all its characteristics.
METHODS
Constructor
my $card = Games::Risk::Card->new( \%params )
Create a new card. Mandatory param is
type
, and there's an optional paramcountry
.
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
orwildcard
Methods
$card->destroy()
Remove all circular references of
$card
, to prevent memory leaks.
SEE ALSO
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007