Games::RailRoad::Window::Trains - an opaque vector class.
version 1.101330
GRW::Trains implements a POE session, creating a Tk window listing the trains existing in the simulation. The window can be hidden at will.
my $id = Games::RailRoad::Window::Train->spawn(%opts); $kernel->post( $id, 'visibility_toggle' );
Create a window listing trains, and return the associated POE session ID. One can pass the following options:
A Tk window that will be the parent of the toplevel window created. This parameter is mandatory.
The newly created POE session accepts the following events:
Request the window to be hidden or restaured, depending on its previous state. Note that closing the window is actually interpreted as hiding the window.
Jerome Quelin
This software is copyright (c) 2008 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Games::RailRoad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::RailRoad
CPAN shell
perl -MCPAN -e shell install Games::RailRoad
For more information on module installation, please visit the detailed CPAN module installation guide.