Games::Risk::GUI::GameOver - window used when game is over


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

Index


NAME

Top

Games::Risk::GUI::GameOver - window used when game is over

VERSION

Top

version 3.103040

DESCRIPTION

Top

GR::GUI::GameOver implements a POE session, creating a Tk window to announce the winner of the game. The window and asession are only used once, then discarded.

SYNOPSYS

Top

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

CLASS METHODS

Top

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

Create a window, 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.

winner => $player

The player that won the game. This parameter is mandatory.

PUBLIC EVENTS

Top

The newly created POE session does not accept nor fires any events.

SEE ALSO

Top

Games::Risk.

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


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