Game::3D::Signal - export the signal and state names
use Game::3D::Signal qw/SIGNAL_ON SIGNAL_OFF/;
$signal = Game::3D::Signal->invert($signal) if $signal == SIGNAL_ON;
Exports nothing on default. Can export signal and state names like:
SIGNAL_ON SIGNAL_UP SIGNAL_OPEN
SIGNAL_OFF SIGNAL_CLOSE SIGNAL_DOWN
SIGNAL_FLIP
SIGNAL_LEFT SIGNAL_RIGHT
STATE_ON STATE_UP STATE_OPEN
STATE_OFF STATE_CLOSED STATE_DOWN
STATE_LEFT STATE_RIGHT
SIGNAL_LEVEL_WON
SIGNAL_LEVEL_LOST
This package just exports the signal and state names on request.
invert()
$signal = Game::3D::Signal->invert($signal);
Invert a signal when the signal is SIGNAL_ON or SIGNAL_OFF (or one of it's aliases like RIGHT, LEFT, UP, DOWN, CLOSE, or OPEN),
(c) 2002, 2003, Tels <http://bloodgate.com/>
the SDL:App::FPS manpage, the SDL::App manpage and SDL.