line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::PMM::Monster::Commands; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
580
|
use strict; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
851
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub new |
6
|
|
|
|
|
|
|
{ |
7
|
9
|
|
|
9
|
1
|
1417
|
my $class = shift; |
8
|
9
|
|
|
|
|
30
|
my $commands = $class->process_commands( @_ ); |
9
|
9
|
|
|
|
|
38
|
bless $commands, $class; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub process_commands |
13
|
|
|
|
|
|
|
{ |
14
|
9
|
|
|
9
|
0
|
15
|
my $self = shift; |
15
|
9
|
|
|
|
|
703
|
return [ ( map { [ split( ' ', $_ ) ] } @_ ), undef ]; |
|
4
|
|
|
|
|
21
|
|
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub next |
19
|
|
|
|
|
|
|
{ |
20
|
8
|
|
|
8
|
1
|
1164
|
my $self = shift; |
21
|
8
|
|
|
|
|
20
|
my $command = shift @$self; |
22
|
|
|
|
|
|
|
|
23
|
8
|
|
|
|
|
16
|
push @$self, $command; |
24
|
8
|
100
|
|
|
|
56
|
return @$command if defined $command; |
25
|
2
|
|
|
|
|
11
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
__END__ |