/usr/lib/perl5/pods/SDLx/Controller/State.pod is in libsdl-perl 2.540-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | =pod
=head1 NAME
SDLx::Controller::State - the state of a SDLx::Controller::Interface
=head1 CATEGORY
Extension, Controller
=head1 SYNOPSIS
# you'll most likely get a State object from a SDLx::Controller::Interface
# object. Just in case, here's how you would construct one by hand:
my $state1 = SDLx::Controller::State->new;
my $state2 = SDLx::Controller::State->new( $x, $y, $v_x, $v_y, $rotation, $ang_v );
# attributes are just simple accessors:
$state->x(10);
$state->x; # 10
# same goes for the rest:
$state->y;
$state->ang_v;
# etc.
=head1 DESCRIPTION
A state object is a simple container for any given state inside a running
L<SDLx::Controller::Interface> instance.
=head1 METHODS
=head2 new()
=head2 new( $x, $y, $v_x, $v_y, $rotation, $ang_v )
Creates a new state container object. Can optionally set the initial value
of all its attributes (see below).
=head1 ACCESSORS
=head2 x
Accessor to get/set the x value, usually used to position the item or check for collisions.
=head2 y
Accessor to get/set the y value, usually used to position the item or check for collisions.
=head2 v_x
Accessor to get/set the x velocity of the instance, for moving objects dynamically.
=head2 v_y
Accessor to get/set the y velocity of the instance, for moving objects dynamically.
=head2 rotation
Accessor to get/set the rotation of the object, in degrees (0..360).
=head2 ang_v
Accessor to get/set the angular velocity, for rotating objects dynamically.
=head2 AUTHORS
See L<SDL/AUTHORS>
=cut
|