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