line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::ABC_Path::Generator::Coord; |
2
|
|
|
|
|
|
|
$Games::ABC_Path::Generator::Coord::VERSION = '0.4.2'; |
3
|
2
|
|
|
2
|
|
32
|
use 5.006; |
|
2
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
37
|
|
6
|
2
|
|
|
2
|
|
20
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
61
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
13
|
use integer; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
8
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
64
|
use parent 'Games::ABC_Path::Solver::Coord'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
|
145
|
use Games::ABC_Path::Solver::Constants; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
699
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _from_int |
16
|
|
|
|
|
|
|
{ |
17
|
76
|
|
|
76
|
|
139
|
my ( $class, $int ) = @_; |
18
|
76
|
|
|
|
|
244
|
return $class->new( { y => ( $int / $LEN ), x => ( $int % $LEN ) } ); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; # End of Games::ABC_Path::Generator::Coord |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |