line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Settlers::Asset::Road; |
2
|
|
|
|
|
|
|
$Settlers::Asset::Road::VERSION = '0.07'; |
3
|
4
|
|
|
4
|
|
20
|
use strict; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
94
|
|
|
1
|
|
|
|
|
924
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
4
|
4
|
|
|
4
|
|
30
|
use warnings; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
89
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
5
|
4
|
|
|
4
|
|
358
|
use Settlers::Resource::Brick; |
|
4
|
|
|
1
|
|
6
|
|
|
4
|
|
|
|
|
98
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
6
|
4
|
|
|
4
|
|
337
|
use Settlers::Resource::Lumber; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
667
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
419
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
30
|
|
|
30
|
0
|
53
|
my ($class, $path) = @_; |
11
|
30
|
50
|
33
|
|
|
84
|
die "$class new require a path argument" |
12
|
|
|
|
|
|
|
unless $path && $path->isa('Settlers::Map::Path'); |
13
|
|
|
|
|
|
|
|
14
|
30
|
|
|
|
|
147
|
return bless { |
15
|
|
|
|
|
|
|
location => $path, |
16
|
|
|
|
|
|
|
code => 'R', |
17
|
|
|
|
|
|
|
}, $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
0
|
sub code { $_[0]->{code} } |
21
|
60248
|
|
|
60248
|
0
|
152305
|
sub location { $_[0]->{location} } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub cost |
24
|
|
|
|
|
|
|
{ |
25
|
|
|
|
|
|
|
return [ |
26
|
18
|
|
|
18
|
0
|
75
|
Settlers::Resource::Brick->new(-1), |
27
|
|
|
|
|
|
|
Settlers::Resource::Lumber->new(-1), |
28
|
|
|
|
|
|
|
]; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |