Games::RailRoad::Train - a train object
Games::RailRoad::Train provides a train object.
Games::RailRoad::Train
Create a new train object. One can pass a hash reference with the following keys:
the node from where the train is coming.
the node where the train is headed.
a number between 0 and 1 indicating where exactly the train is between its from and to nodes.
Request $train to draw itself on $canvas, assuming that each square has a length of $tilelen.
$train
$canvas
$tilelen
Games::RailRoad.
Jerome Quelin, <jquelin at cpan.org>
<jquelin at cpan.org>
Copyright (c) 2008 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 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.