line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catan::Asset::Settlement; |
2
|
|
|
|
|
|
|
$Catan::Asset::Settlement::VERSION = '0.02'; |
3
|
4
|
|
|
4
|
|
17
|
use strict; |
|
4
|
|
|
1
|
|
7
|
|
|
4
|
|
|
|
|
100
|
|
|
1
|
|
|
|
|
840
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
4
|
4
|
|
|
4
|
|
17
|
use warnings; |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
100
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
5
|
4
|
|
|
4
|
|
19
|
use Catan::Resource::Brick; |
|
4
|
|
|
1
|
|
6
|
|
|
4
|
|
|
|
|
90
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
6
|
4
|
|
|
4
|
|
359
|
use Catan::Resource::Grain; |
|
4
|
|
|
1
|
|
6
|
|
|
4
|
|
|
|
|
98
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
18
|
|
7
|
4
|
|
|
4
|
|
24
|
use Catan::Resource::Lumber; |
|
4
|
|
|
1
|
|
6
|
|
|
4
|
|
|
|
|
86
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
8
|
4
|
|
|
4
|
|
337
|
use Catan::Resource::Wool; |
|
4
|
|
|
1
|
|
7
|
|
|
4
|
|
|
|
|
742
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
435
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new |
11
|
|
|
|
|
|
|
{ |
12
|
0
|
|
|
0
|
0
|
|
my ($class, $location) = @_; |
13
|
|
|
|
|
|
|
|
14
|
0
|
0
|
0
|
|
|
|
die "$class new requires a location argument" |
15
|
|
|
|
|
|
|
unless $location && $location->isa('Catan::Map::Intersection'); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
return bless { |
18
|
|
|
|
|
|
|
location => $location, |
19
|
|
|
|
|
|
|
code => 'S', |
20
|
|
|
|
|
|
|
}, $class; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
0
|
|
sub code { $_[0]->{code} } |
24
|
0
|
|
|
0
|
0
|
|
sub location { $_[0]->{location} } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub cost |
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
return [ |
29
|
0
|
|
|
0
|
0
|
|
Catan::Resource::Brick->new(-1), |
30
|
|
|
|
|
|
|
Catan::Resource::Grain->new(-1), |
31
|
|
|
|
|
|
|
Catan::Resource::Lumber->new(-1), |
32
|
|
|
|
|
|
|
Catan::Resource::Wool->new(-1), |
33
|
|
|
|
|
|
|
]; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |