Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

mortic::IEventManager Class Reference

Generates and Dispatches Events. More...

Inheritance diagram for mortic::IEventManager:

mortic::IObject List of all members.

Public Member Functions

 IEventManager (IRoot *root)
 Constructor.
virtual ~IEventManager ()
 Destructor.
virtual void generateIrrlichtEvent (irr::SEvent event)=0
 Generate an Irrlicht Event.
virtual void generateMorticEvent (std::string name, enum EValueType *types=NULL, union UValue *values=NULL, unsigned int count=0)=0
 Generate a Mortic Event.
virtual void generateUserEvent (std::string name, enum EValueType *types=NULL, union UValue *values=NULL, unsigned int count=0)=0
 Generates a user-made event.
virtual void generateNullEvent ()=0
 Generate an event that means nothing.

Detailed Description

Generates and Dispatches Events.

This is the manager that generates and dispatches events. If you want to communincate to an object, you call the appropriate method from here, and your event is dispatched to every other manager's event() function. Hopefully, it is dispatched from there to your object.

See also:
IEvent

Definition at line 141 of file IEventManager.h.


Constructor & Destructor Documentation

mortic::IEventManager::IEventManager IRoot root  )  [inline]
 

Constructor.

Definition at line 145 of file IEventManager.h.

virtual mortic::IEventManager::~IEventManager  )  [inline, virtual]
 

Destructor.

Definition at line 148 of file IEventManager.h.


Member Function Documentation

virtual void mortic::IEventManager::generateIrrlichtEvent irr::SEvent  event  )  [pure virtual]
 

Generate an Irrlicht Event.

This generates a mortic wrapper for the Irrlicht event given.

  • event - the Irrlicht Event to wrap
    See also:
    IEvent

virtual void mortic::IEventManager::generateMorticEvent std::string  name,
enum EValueType types = NULL,
union UValue values = NULL,
unsigned int  count = 0
[pure virtual]
 

Generate a Mortic Event.

This should only be used internally for classification porpouses. Used the same as generateUserEvent()

See also:
IEvent

generateUserEvent()

virtual void mortic::IEventManager::generateNullEvent  )  [pure virtual]
 

Generate an event that means nothing.

Because this event holds no data, it can only be used once in the code, usually for tests. I really have no idea why it is here...

virtual void mortic::IEventManager::generateUserEvent std::string  name,
enum EValueType types = NULL,
union UValue values = NULL,
unsigned int  count = 0
[pure virtual]
 

Generates a user-made event.

This is the function you would use to generate an event.

  • name - the name of the event
  • types - an array of argument types
  • values - an array of arguments
  • count - the length of types and values
    See also:
    IEvent


Generated on Sat Dec 30 21:21:59 2006 for mortic by  doxygen 1.4.4