Games::Risk::Player - risk player
my $id = Games::Risk::Player->new(\%params);
This module implements a risk player, with all its characteristics.
my $player = Games::Risk::Player->new( \%params )
The following accessors (acting as mutators, ie getters and setters) are available for Games::Risk::Player objects:
Games::Risk::Player
ai_class
the class of the artificial intelligence, if player is an ai.
color
player color to be used in the gui.
name
player name.
type
player type (human, ai, etc.)
The following methods are available for Games::Risk::Player objects:
Return the list of cards (Games::Risk::Map::Card objects) currently owned by $player.
Games::Risk::Map::Card
$player
Add $card to the set of cards owned by $player.
$card
Remove $card from the set of cards owned by player.
player
Return the list of countries (Games::Risk::Map::Country objects) currently owned by $player.
Games::Risk::Map::Country
Add $country to the set of countries owned by $player.
$country
Delete $country from the set of countries owned by $player.
Return an integer reflecting the greatness of $player. It will raise with the number of owned territories, as well as the number of armies.
Games::Risk.
Jerome Quelin, <jquelin at cpan.org>
<jquelin at cpan.org>
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+.
6 POD Errors
The following errors were encountered while parsing the POD:
Expected text after =item, not a bullet
To install Games::Risk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Risk
CPAN shell
perl -MCPAN -e shell install Games::Risk
For more information on module installation, please visit the detailed CPAN module installation guide.