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


Games-Risk documentation  | view source Contained in the Games-Risk distribution.

Index


NAME

Top

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

VERSION

Top

version 3.103040

DESCRIPTION

Top

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

Top

parent

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

METHODS

Top

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( 'gui-continents' => 'shutdown' );

Kill current session. The toplevel window has already been destroyed.

visibility_toggle

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

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

SYNOPSYS

Top

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

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


Games-Risk documentation  | view source Contained in the Games-Risk distribution.