Polycode
Polycode::Event Class Reference

Event base class. More...

Inherited by Polycode::InputEvent, and Polycode::ScreenEvent.

List of all members.

Public Member Functions

 Event ()
 Default constructor.
 Event (int eventCode)
 Initializes the event with an eventCode.
int getEventCode () const
 Returns the event code for this event.
EventDispatchergetDispatcher () const
 Returns the event dispatcher which originated the event.

Detailed Description

Event base class.

Subclass this class to pass complex data through events.


Constructor & Destructor Documentation

Polycode::Event::Event ( int  eventCode)

Initializes the event with an eventCode.

Parameters:
eventCodeEvent code to initalize with.

Member Function Documentation

EventDispatcher * Polycode::Event::getDispatcher ( ) const

Returns the event dispatcher which originated the event.

Returns:
Event dispatcher which originated the event.
int Polycode::Event::getEventCode ( ) const

Returns the event code for this event.

Returns:
Event code for the event.