NAME
Games::3D::Signal - export the signal and state names
SYNOPSIS
use Games::3D::Signal qw/SIGNAL_ON SIGNAL_OFF/;
$signal = Games::3D::Signal->invert($signal) if $signal == SIGNAL_ON;
EXPORTS
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
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 SIGNAL_ON or SIGNAL_OFF (or one of it's aliases like RIGHT, LEFT, UP, DOWN, CLOSE, or OPEN),
AUTHORS
(c) 2002, 2003, Tels <http://bloodgate.com/>
SEE ALSO
SDL:App::FPS, SDL::App and SDL.