The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Games::Risk::Card - map card

VERSION

version 3.101110

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 param country.

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 or wildcard

Methods

  • $card->destroy()

    Remove all circular references of $card, to prevent memory leaks.

SEE ALSO

Games::Risk.

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+.

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