
SDL::App::FPS::Thingy - base class for SDL::App::FPS event handlers, timers etc

package SDL::App::FPS::MyThingy;
use SDL::App::FPS::Thingy;
require Exporter;
@ISA = qw/SDL::App::FPS::Thingy/;
sub _init
{
my ($self) = shift;
# init with arguments from @_
}
# override or add any method you need

Exports nothing on default.

This package provides a base class for "things" in SDL::App::FPS. It should not be used on it's own.

These methods need not to be overwritten:
my $thingy = SDL::App::FPS::Thingy->new($app,@options);
Creates a new thing, and registers it with the application $app (usually an instance of a subclass of SDL::App::FPS).
$thingy->is_active();
Returns true if the thingy is active, or false for inactive.
$thingy->activate();
Set the thingy to active. Newly created ones are always active.
$thingy->deactivate();
Set the thingy to inactive. Newly created ones are always active.
Inactive thingies ignore signals or state changes until they become active again.
Return the thingy's unique id.
print $thingy->name();
$thingy->name('new name');
Set and/or return the thingy's name. The default name is the last part of the classname, uppercased, preceded by '#' and the thingy's unique id.

(c) 2002, 2003, Tels <http://bloodgate.com/>

SDL:App::FPS, SDL::App and SDL.