Games::Risk::GUI::Cards - cards listing
my $id = Games::Risk::GUI::Cards->spawn(%opts); Poe::Kernel->post( $id, 'card', $card );
GR::GUI::Cards implements a POE session, creating a Tk window to list the cards the player got. It can be used to exchange cards with new armies during reinforcement.
GR::GUI::Cards
Create a window requesting for amies move, and return the associated POE session ID. One can pass the following options:
A Tk window that will be the parent of the toplevel window created. This parameter is mandatory.
The newly created POE session accepts the following events:
Add $card to the list of cards owned by the player to be shown.
$card
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+.
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.