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

NAME

Games::Risk::GUI::Continents - continents listing

SYNOPSYS

    my $id = Games::Risk::GUI::Continents->spawn(%opts);

DESCRIPTION

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

CLASS METHODS

my $id = Games::Risk::GUI::Continents->spawn( %opts );

Create a window listing the continents, and return the associated POE session ID. One can pass the following options:

parent => $mw

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

PUBLIC EVENTS

The newly created POE session accepts the following events:

  • shutdown()

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

  • visibility_toggle()

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

SEE ALSO

Games::Risk.

AUTHOR

Jerome Quelin, <jquelin at cpan.org>

COPYRIGHT & LICENSE

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+.