Mario/NSMB/Wii.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 100% 1 / 1 totaltotal 85.7% 24 / 28 SCAR 0.0
CC
1
Cov
89%
_items
2.0
games
2.0
BEGIN
1.0
CRAP 1.0
« Mario/NSMB.pm ↑ Summary Mario/SMBTLL.pm »
1 2 ▶use 5.16.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Games::Nintendo::Mario::NSMB::Wii 0.208;
4  
5 2 ▶use parent qw(Games::Nintendo::Mario::NSMB);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 ▶sub _names { ('Mario', 'Luigi', 'Blue Toad', 'Yellow Toad') }
Subroutine _names: called CC=1 SCAR=0.0
10 10 ▶sub _states { qw[normal super fire shell mini mega propeller ice penguin] }
Subroutine _states: called CC=1 SCAR=0.0
11 0 ▶sub _items { qw[mushroom flower shell mega_mushroom mini_mushroom propeller_mushroom ice_flower penguinsuit] }
Subroutine _items: not called CC=1 SCAR=6.9
12  
13 2 my %__default_behavior = (
14 damage => 'dead',
15 mushroom => 'super',
16 flower => 'fire',
17 shell => 'shell',
18 mega_mushroom => 'mega',
19 mini_mushroom => 'mini',
20 propeller_mushroom => 'propeller',
21 ice_flower => 'ice',
22 penguinsuit => 'penguin',
23 );
24  
25 my %state = (
26 normal => { %__default_behavior },
27 super => {
28 %__default_behavior,
29 damage => 'normal',
30 mushroom => 'save',
31 },
32 fire => {
33 %__default_behavior,
34 damage => 'normal',
35 flower => 'save',
36 mushroom => 'save',
37 },
38 shell => {
39 %__default_behavior,
40 damage => 'super',
41 mushroom => 'save',
42 flower => 'save',
43 },
44 2 mega => { map { $_ => 'ignore' } keys %__default_behavior },
45 mini => { %__default_behavior, mini => 'save' },
46  
47 propeller => {
48 %__default_behavior,
49 damage => 'normal',
50 mushroom => 'save',
51 },
52 ice => {
53 %__default_behavior,
54 damage => 'normal',
55 mushroom => 'save',
56 },
57 penguin => {
58 %__default_behavior,
59 damage => 'normal',
60 mushroom => 'save',
61 },
62 );
63  
64 sub games {
65 0 ▶ return ('New Super Mario Bros. Wii');
Subroutine games: not called CC=1 SCAR=6.9
Pod documented
66 }
67  
68 2 "Go Wigi!";
69  
70 __END__
« Mario/NSMB.pm ↑ Summary Mario/SMBTLL.pm »