NAME
Games::Risk::Deck - pandemic card deck
VERSION
version 4.000
DESCRIPTION
A Games::Risk::Deck contains a set of Games::Risk::Card, with methods to handle this set.
ATTRIBUTES
cards
The set of Games::Risk::Cards hold in the deck.
METHODS
all
my @cards = $deck->cards;
my @cards = $deck->all;
Return all the cards in the $deck
.
get
my $card = $deck->get;
Get the next $card
in the deck.
add
return
$deck->add( $card );
$deck->return( $card );
Return $card
to the deck of cards.
del
$deck->del( $card );
Remove a $card
from the deck.
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