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.

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.

id()

Return the thingy's unique id.

AUTHORS

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

SEE ALSO

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