line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Game::TileMap::Tile; |
2
|
|
|
|
|
|
|
$Game::TileMap::Tile::VERSION = '0.001'; |
3
|
2
|
|
|
2
|
|
30
|
use v5.10; |
|
2
|
|
|
|
|
6
|
|
4
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
42
|
|
5
|
2
|
|
|
2
|
|
22
|
use warnings; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
52
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use Moo; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
8
|
2
|
|
|
2
|
|
844
|
use Mooish::AttributeBuilder -standard; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
15
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has param ['x', 'y'] => ( |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# isa => PositiveInt, |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has param 'contents' => ( |
16
|
|
|
|
|
|
|
writer => 1, |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# isa => Any, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has field 'type' => ( |
22
|
|
|
|
|
|
|
default => sub { shift->contents }, |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# isa => Any, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |