NAME

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

SYNOPSIS

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

Exports nothing on default.

DESCRIPTION

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

METHODS

These methods need not to be overwritten:

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

is_active()
$thingy->is_active();

Returns true if the thingy is active, or false for inactive.

activate()
$thingy->activate();

Set the thingy to active. Newly created ones are always active.

deactivate()
$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.

id()

Return the thingy's unique id.

name()
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.

AUTHORS

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

SEE ALSO

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