File Coverage

blib/lib/Games/AssaultCube/Log/Line/FlagReset.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             # Declare our package
2             package Games::AssaultCube::Log::Line::FlagReset;
3              
4             # import the Moose stuff
5 1     1   3522 use Moose;
  0            
  0            
6              
7             # Initialize our version
8             use vars qw( $VERSION );
9             $VERSION = '0.04';
10              
11             extends 'Games::AssaultCube::Log::Line::Base';
12              
13             with 'Games::AssaultCube::Log::Line::Base::TeamInfo';
14              
15             has 'tostr' => (
16             isa => 'Str',
17             is => 'ro',
18             lazy => 1,
19             default => sub {
20             my $self = shift;
21             return "The server reset the " . $self->team_name . " flag";
22             },
23             );
24              
25             no Moose;
26             __PACKAGE__->meta->make_immutable;
27              
28             1;
29             __END__
30              
31             =for stopwords CLA RVSF
32             =head1 NAME
33              
34             Games::AssaultCube::Log::Line::FlagReset - Describes the FlagReset event in a log line
35              
36             =head1 ABSTRACT
37              
38             Describes the FlagReset event in a log line
39              
40             =head1 DESCRIPTION
41              
42             This module holds the "FlagReset" event data from a log line. Normally, you would not use this class directly
43             but via the L<Games::AssaultCube::Log::Line> class.
44              
45             This line is emitted when the server resets a flag for a team.
46              
47             =head2 Attributes
48              
49             Those attributes hold information about the event. As this class extends the L<Games::AssaultCube::Log::Line::Base>
50             class, you can also use it's attributes too.
51              
52             =head3 team
53              
54             The id of the team
55              
56             0 = CLA
57             1 = RVSF
58             2 = NONE
59              
60             =head3 team_name
61              
62             The team name ( CLA, RVSF, NONE )
63              
64             =head1 AUTHOR
65              
66             Apocalypse E<lt>apocal@cpan.orgE<gt>
67              
68             Props goes to the BS clan for the support!
69              
70             This project is sponsored by L<http://cubestats.net>
71              
72             =head1 COPYRIGHT AND LICENSE
73              
74             Copyright 2009 by Apocalypse
75              
76             This library is free software; you can redistribute it and/or modify
77             it under the same terms as Perl itself.
78              
79             =cut