Polycode
Polycode::EventHandler Class Reference

Can handle events from EventDispatcher classes. More...

Inherited by Polycode::EventDispatcher.

List of all members.

Public Member Functions

 EventHandler ()
 Default constructor.
virtual void handleEvent (Event *event)
 This method gets called by an EventDispatcher that the handler is listening to if the dispatching event's code matches the code that handler is listening for.

Detailed Description

Can handle events from EventDispatcher classes.


Member Function Documentation

virtual void Polycode::EventHandler::handleEvent ( Event event) [inline, virtual]

This method gets called by an EventDispatcher that the handler is listening to if the dispatching event's code matches the code that handler is listening for.

Typically, you subclass EventHandler and implement the handleEvent method to handle specific events.

See also:
EventDispatcher

Reimplemented in Polycode::Screen, Polycode::CoreServices, Polycode::Tween, and Polycode::ScreenManager.