line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catan::Asset::Road; |
2
|
|
|
|
|
|
|
$Catan::Asset::Road::VERSION = '0.02'; |
3
|
4
|
|
|
4
|
|
19
|
use strict; |
|
4
|
|
|
1
|
|
6
|
|
|
4
|
|
|
|
|
95
|
|
|
1
|
|
|
|
|
837
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
4
|
4
|
|
|
4
|
|
18
|
use warnings; |
|
4
|
|
|
1
|
|
9
|
|
|
4
|
|
|
|
|
91
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
5
|
4
|
|
|
4
|
|
379
|
use Catan::Resource::Brick; |
|
4
|
|
|
1
|
|
27
|
|
|
4
|
|
|
|
|
99
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
6
|
4
|
|
|
4
|
|
383
|
use Catan::Resource::Lumber; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
667
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
407
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
0
|
|
|
0
|
0
|
|
my ($class, $path) = @_; |
11
|
0
|
0
|
0
|
|
|
|
die "$class new require a path argument" |
12
|
|
|
|
|
|
|
unless $path && $path->isa('Catan::Map::Path'); |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
return bless { |
15
|
|
|
|
|
|
|
location => $path, |
16
|
|
|
|
|
|
|
code => 'R', |
17
|
|
|
|
|
|
|
}, $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
|
sub code { $_[0]->{code} } |
21
|
0
|
|
|
0
|
0
|
|
sub location { $_[0]->{location} } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub cost |
24
|
|
|
|
|
|
|
{ |
25
|
|
|
|
|
|
|
return [ |
26
|
0
|
|
|
0
|
0
|
|
Catan::Resource::Brick->new(-1), |
27
|
|
|
|
|
|
|
Catan::Resource::Lumber->new(-1), |
28
|
|
|
|
|
|
|
]; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |