Ninja/HittedAction2.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
takeHit
2.0
BEGIN
2.0
CRAP 2.0
1 use parent 'Action2';
2  
3 ### An Action on which you/first entity hits based on Action2 subclasses
4  
5 sub new {
6 my $class = shift;
7  
8 $self = $class->SUPER::new(@_);
9  
10 bless $self, $class;
11 };
12  
13 sub takeHit {
14 $self = shift;
15  
16 $self->{hitaction}->takeHit(@_);
17 };
18  
19 1;
20