line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Settlers::Asset::Settlement; |
2
|
|
|
|
|
|
|
$Settlers::Asset::Settlement::VERSION = '0.07'; |
3
|
4
|
|
|
4
|
|
19
|
use strict; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
91
|
|
|
1
|
|
|
|
|
853
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
21
|
|
4
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
1
|
|
6
|
|
|
4
|
|
|
|
|
88
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
5
|
4
|
|
|
4
|
|
19
|
use Settlers::Resource::Brick; |
|
4
|
|
|
1
|
|
6
|
|
|
4
|
|
|
|
|
79
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
25
|
|
6
|
4
|
|
|
4
|
|
343
|
use Settlers::Resource::Grain; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
95
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
17
|
|
7
|
4
|
|
|
4
|
|
19
|
use Settlers::Resource::Lumber; |
|
4
|
|
|
1
|
|
5
|
|
|
4
|
|
|
|
|
78
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
8
|
4
|
|
|
4
|
|
340
|
use Settlers::Resource::Wool; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
720
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
402
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new |
11
|
|
|
|
|
|
|
{ |
12
|
13
|
|
|
13
|
0
|
24
|
my ($class, $location) = @_; |
13
|
|
|
|
|
|
|
|
14
|
13
|
50
|
33
|
|
|
43
|
die "$class new requires a location argument" |
15
|
|
|
|
|
|
|
unless $location && $location->isa('Settlers::Map::Intersection'); |
16
|
|
|
|
|
|
|
|
17
|
13
|
|
|
|
|
56
|
return bless { |
18
|
|
|
|
|
|
|
location => $location, |
19
|
|
|
|
|
|
|
code => 'S', |
20
|
|
|
|
|
|
|
}, $class; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
0
|
0
|
sub code { $_[0]->{code} } |
24
|
8198
|
|
|
8198
|
0
|
21154
|
sub location { $_[0]->{location} } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub cost |
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
return [ |
29
|
5
|
|
|
5
|
0
|
25
|
Settlers::Resource::Brick->new(-1), |
30
|
|
|
|
|
|
|
Settlers::Resource::Grain->new(-1), |
31
|
|
|
|
|
|
|
Settlers::Resource::Lumber->new(-1), |
32
|
|
|
|
|
|
|
Settlers::Resource::Wool->new(-1), |
33
|
|
|
|
|
|
|
]; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |