
Games::RailRoad::Train - a train object

Games::RailRoad::Train provides a train object.

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.


Jerome Quelin,
<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.