NAME
Games::Pandemic::Tk::PlayerFrame - frame to display a player
VERSION
version 0.4.0
SYNOPSIS
my $pframe = Games::Pandemic::Tk::PlayerFrame->new(
parent => $f,
player => $player,
)->pack(@LEFT);
$pframe->add_card($card);
DESCRIPTION
This module implements a frame displaying a player icon with her cards available. Clicking on the icon hides or shows her cards.
The constructor accepts the following arguments:
parent => $widget - the parent widget
player => $player - the player to display
METHODS
$pframe->pack(...);
Regular call to Tk::pack
for the player frame.
$pframe->add_card( $card );
Draw the new $card
in the card frame.
$pframe->rm_card( $card );
Remove the $card
in the card frame.
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is Copyright (c) 2009 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007