Jerome Quelin > Games-Risk-3.112820 > Games::Risk::Deck

Download:
Games-Risk-3.112820.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 3.112820   Source   Latest Release: Games-Risk-4.000

NAME ^

Games::Risk::Deck - pandemic card deck

VERSION ^

version 3.112820

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
syntax highlighting: