line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Game::TileMap::Tile; |
2
|
|
|
|
|
|
|
$Game::TileMap::Tile::VERSION = '0.002'; |
3
|
2
|
|
|
2
|
|
27
|
use v5.10; |
|
2
|
|
|
|
|
8
|
|
4
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
41
|
|
5
|
2
|
|
|
2
|
|
21
|
use warnings; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
48
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use Moo; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
8
|
2
|
|
|
2
|
|
675
|
use Mooish::AttributeBuilder -standard; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
13
|
|
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__ |