pods::SDLx::Controller::State man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

pods::SDLx::ControllerUseraContributed Perl Dopods::SDLx::Controller::State(3)

NAME
       SDLx::Controller::State - the state of a SDLx::Controller::Interface

CATEGORY
       Extension, Controller

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.

DESCRIPTION
       A state object is a simple container for any given state inside a
       running SDLx::Controller::Interface instance.

METHODS
   new()
   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).

ACCESSORS
   x
       Accessor to get/set the x value, usually used to position the item or
       check for collisions.

   y
       Accessor to get/set the y value, usually used to position the item or
       check for collisions.

   v_x
       Accessor to get/set the x velocity of the instance, for moving objects
       dynamically.

   v_y
       Accessor to get/set the y velocity of the instance, for moving objects
       dynamically.

   rotation
       Accessor to get/set the rotation of the object, in degrees (0..360).

   ang_v
       Accessor to get/set the angular velocity, for rotating objects
       dynamically.

   AUTHORS
       See "AUTHORS" in SDL

perl v5.18.1			  2013-09-28  pods::SDLx::Controller::State(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net