| Algorithm-Metric-Chessboard documentation | view source | Contained in the Algorithm-Metric-Chessboard distribution. |
Algorithm::Metric::Chessboard::Journey - Model a journey on an Algorithm::Metric::Chessboard grid.
my $wormhole_a =
Algorithm::Metric::Chessboard::Wormhole->new( x => 3, y => 9 );
my $wormhole_b =
Algorithm::Metric::Chessboard::Wormhole->new( x => 40, y => 70 );
my $journey =
Algorithm::Metric::Chessboard::Journey->new(
start => [ 3, 10 ],
end => [ 45, 78 ],
via => [ $wormhole_a, $wormhole_b ],
distance => 10,
);
This is purely a data object. You don't want to call this directly; it's used internally by Algorithm::Metric::Chessboard.
Kake Pugh (kake@earth.li).
Copyright (C) 2004 Kake Pugh. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Algorithm-Metric-Chessboard documentation | view source | Contained in the Algorithm-Metric-Chessboard distribution. |