NAME

Games::3D::Signal - export the signal and state names

SYNOPSIS

use Games::3D::Signal qw/SIG_ON SIG_OFF/;

$signal = Games::3D::Signal->invert($signal) if $signal == SIG_ON;

EXPORTS

Exports nothing on default. Can export signal and state names like:

SIG_ON SIG_UP SIG_OPEN
SIG_OFF SIG_CLOSE SIG_DOWN
SIG_FLIP SIG_DIE
SIG_ACTIVATE SIG_DEACTIVATE

SIG_LEFT SIG_RIGHT
STATE_ON STATE_UP STATE_OPEN
STATE_OFF STATE_CLOSED STATE_DOWN

SIG_KILLED 
SIG_LEVEL_WON
SIG_LEVEL_LOST
invert

STATE_0 STATE_1 STATE_2 STATE_3 STATE_4 STATE_5 STATE_6 STATE_7 STATE_8
STATE_9 STATE_10 STATE_11 STATE_12 STATE_13 STATE_14 STATE_15

SIG_STATE_0 SIG_STATE_1 SIG_STATE_2 SIG_STATE_3 SIG_STATE_4 SIG_STATE_5
SIG_STATE_6 SIG_STATE_7 SIG_STATE_8 SIG_STATE_9 SIG_STATE_10 SIG_STATE_11
SIG_STATE_12 SIG_STATE_13 SIG_STATE_14 SIG_STATE_15

SIG_NOW_0 SIG_NOW_1 SIG_NOW_2 SIG_NOW_3 SIG_NOW_4 SIG_NOW_5
SIG_NOW_6 SIG_NOW_7 SIG_NOW_8 SIG_NOW_9 SIG_NOW_10 SIG_NOW_11
SIG_NOW_12 SIG_NOW_13 SIG_NOW_14 SIG_NOW_15

DESCRIPTION

This package just exports the signal and state names on request.

METHODS

invert()
$signal = Games::3D::Signal::invert($signal);

Invert a signal when the signal is SIG_ON or SIG_OFF (or one of it's aliases like RIGHT, LEFT, UP, DOWN, CLOSE, or OPEN),

signal_name()
print Games::3D::Signal::signal_name($signal);

Return the name of the signal.

signal_from_state()
print Games::3D::Signal::signal_from_state($state);

Return the signal that should be send out when the $state is reached.

state_from_signal()
print Games::3D::Signal::state_from_signal($signal);

Given a signal like SIG_ON, SIG_FLIP or SIG_STATE_x, will return the new state that will result from receiving this signal.

signal_by_name()
my $signal = Games::3D::Signal::signal_by_name('SIG_FLIP');

Converts a signal name to the signal number.

AUTHORS

(c) 2002 - 2004, 2006 Tels <http://bloodgate.com/>

SEE ALSO

Games::Irrlicht, Games::3D.