PangZero/DemoPlaybackGame.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 27 CC 2 SCAR 12.8
CC
2
Cov
0%
DrawScoreBoard
6.0
new
2.0
BEGIN
2.0
CRAP 3.6
1 ##########################################################################
2 package Games::PangZero::DemoPlaybackGame;
3 ##########################################################################
4  
5 @ISA = qw(Games::PangZero::DemoGame Games::PangZero::PlaybackGame);
6 use strict;
7 use warnings;
8  
9 sub new {
10 my $class = shift;
11 my $self = Games::PangZero::PlaybackGame->new(@_);
12 bless $self, $class;
13 }
14  
15 sub DrawScoreBoard {
16 my $self = shift;
17 my $x = 10;
18 my $y = $Games::PangZero::ScreenHeight + 2 * $Games::PangZero::ScreenMargin + 5;
19 if ($self->{anim} < 1) {
20 SDLx::SFont::print_text( $Games::PangZero::Background, $x, $y, "Press F to fast forward" );
21 SDLx::SFont::print_text( $Games::PangZero::App, $x, $y, "Press F to fast forward" );
22 } return;
23 SDL::Video::fill_rect($Games::PangZero::App, SDL::Rect->new(0, $y, $Games::PangZero::PhysicalScreenWidth, $Games::PangZero::PhysicalScreenHeight - $y), SDL::Color->new(0, 0, 0) );
24 SDLx::SFont::print_text( $Games::PangZero::App, $x, $y, $self->{recordpointer} );
25  
26 }