Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members

irr::IEventReceiver Class Reference

Interface of an object which can receive events. More...

#include <IEventReceiver.h>

Inheritance diagram for irr::IEventReceiver:

nge::core::NGEReceiver nge::game::ISceneNodeControllerAnimator nge::core::GameManager

List of all members.

Public Member Functions

virtual bool OnEvent (const SEvent &event)=0
virtual ~IEventReceiver ()


Detailed Description

Interface of an object which can receive events.

Many of the engine's classes inherit IEventReceiver so they are able to process events. Events usually start at a postEventFromUser function and are passed down through a chain of event receivers until OnEvent returns true. See irr::EEVENT_TYPE for a description of where each type of event starts, and the path it takes through the system.

Definition at line 253 of file IEventReceiver.h.


Constructor & Destructor Documentation

virtual irr::IEventReceiver::~IEventReceiver (  )  [inline, virtual]

Definition at line 257 of file IEventReceiver.h.


Member Function Documentation

virtual bool irr::IEventReceiver::OnEvent ( const SEvent event  )  [pure virtual]

called if an event happened.

Returns:
Returns true if the event was processed

Implemented in nge::core::GameManager, nge::game::ISceneNodeControllerAnimator, and nge::core::NGEReceiver.


The documentation for this class was generated from the following file:

The NUSoftware Game Engine
The NUSoftware Game Engine Documentation © 2007-2008 by Tomer Nosrati. Generated on Sat Apr 26 16:52:35 2008 by Doxygen (1.5.5)