EventHandler is a base class from which all event handlers should derive.
The handle() method should be overriden to perform any operations based on the incoming event.
#include <EventHandler.h>
Public Member Functions |
|
EventHandler () | |
virtual bool | handle (const Event &)=0 |
Handles events and returns true if handled,
false otherwise. |
|
virtual void | activate () |
If you add your handler to an
EventHandlerChoser rather than an ordinaty
EventHandler, it will call these methods for you when you are
chosen or unchosen. |
|
virtual void | deactivate () |
Protected Member Functions |
|
virtual | ~EventHandler () |
EventHandler | ( | ) |
virtual ~EventHandler | ( | ) | [protected, virtual] |
virtual bool handle | ( | const Event & | ) | [pure virtual] |
Handles events and returns true if handled, false otherwise.
virtual void activate | ( | ) | [virtual] |
If you add your handler to an EventHandlerChoser rather than an ordinaty EventHandler, it will call these methods for you when you are chosen or unchosen.
virtual void deactivate | ( | ) | [virtual] |