line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Declare our package |
2
|
|
|
|
|
|
|
package Games::AssaultCube::Log::Line::Unknown; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# import the Moose stuff |
5
|
1
|
|
|
1
|
|
2808
|
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
|
|
|
|
|
|
|
# TODO improve validation for everything here, ha! |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has 'ip' => ( |
16
|
|
|
|
|
|
|
isa => 'Str', |
17
|
|
|
|
|
|
|
is => 'ro', |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has 'text' => ( |
21
|
|
|
|
|
|
|
isa => 'Str', |
22
|
|
|
|
|
|
|
is => 'ro', |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has 'tostr' => ( |
26
|
|
|
|
|
|
|
isa => 'Str', |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
lazy => 1, |
29
|
|
|
|
|
|
|
default => sub { |
30
|
|
|
|
|
|
|
my $self = shift; |
31
|
|
|
|
|
|
|
return $self->text; |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
no Moose; |
36
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
__END__ |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=for stopwords ip |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 NAME |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Games::AssaultCube::Log::Line::Unknown - Describes the Unknown event in a log line |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 ABSTRACT |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Describes the Unknown event in a log line |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DESCRIPTION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This module holds the "Unknown" event data from a log line. Normally, you would not use this class directly |
54
|
|
|
|
|
|
|
but via the L<Games::AssaultCube::Log::Line> class. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This represents an unknown log line. Please inform the author if this happens! |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 Attributes |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Those attributes hold information about the event. As this class extends the L<Games::AssaultCube::Log::Line::Base> |
61
|
|
|
|
|
|
|
class, you can also use it's attributes too. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head3 ip |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Sometimes we can parse the ip of the client, but was unable to understand the rest. ( not always defined ) |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head3 text |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
The text we were unable to parse ( sometimes it's the same as $line->line() hah ) |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHOR |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Apocalypse E<lt>apocal@cpan.orgE<gt> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Props goes to the BS clan for the support! |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This project is sponsored by L<http://cubestats.net> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Copyright 2009 by Apocalypse |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
84
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=cut |