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

NAME

Games::Risk::Tk::Continents - continents information

VERSION

version 3.112820

DESCRIPTION

GR::Tk::Continents implements a POE session, creating a Tk window to list the continents of the map and their associated bonus.

The methods are in fact the events accepted by the session.

ATTRIBUTES

parent

A Tk window that will be the parent of the toplevel window created. This parameter is mandatory.

METHODS

chown

    $K->post( 'gui-continents' => chown => $country, $looser);

Update the country count of player for a given continent.

player_add

    $K->post( 'gui-continents' => player_add => $player );

Add a new column in the table to display the new player.

shutdown

    $K->post( continents => 'shutdown', $destroy );

Kill current session. If $destroy is true, the toplevel window will also be destroyed.

visibility_toggle

    $K->post( 'gui-continents' => 'visibility_toggle' );

Request window to be hidden / shown depending on its previous state.

SYNOPSYS

    Games::Risk::Tk::Continents->new(%opts);

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