lib/Game/HeroesVsAliens/Alien/Three.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Game::HeroesVsAliens::Alien::Three;
2  
3 use Moo;
4  
5 with 'Game::HeroesVsAliens::Role::Alien';
6  
7 has health => (
8 is => 'rw',
9 default => sub { 300 }
10 );
11  
12 has max_health => (
13 is => 'rw',
14 default => sub { 300 }
15 );
16  
17 has walking_sprite => (
18 is => 'rw',
19 default => sub {
20 my $sprite = SDLx::Sprite::Animated->new(
21 image => $_[0]->resource_directory . 'resources/alien3-walk.png',
22 width => 100,
23 height => 100
24 );
25 return $sprite;
26 }
27 );
28  
29 has attacking_sprite => (
30 is => 'rw',
31 default => sub {
32 my $sprite = SDLx::Sprite::Animated->new(
33 image => $_[0]->resource_directory . 'resources/alien3-attack.png',
34 width => 100,
35 height => 100
36 );
37 return $sprite;
38 }
39 );
40  
41 has death_sprite => (
42 is => 'rw',
43 default => sub {
44 my $sprite = SDLx::Sprite::Animated->new(
45 image => $_[0]->resource_directory . 'resources/alien3-death.png',
46 width => 100,
47 height => 100
48 );
49 return $sprite;
50 }
51 );
52  
53 1;