Jerome Quelin > Games-Risk-2.1.1 > Games::Risk::GUI::GameOver

Download:
Games-Risk-2.1.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

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

SYNOPSYS ^

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

DESCRIPTION ^

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.

CLASS METHODS ^

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 ^

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

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