Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions
com.linxonline.mallet.event.EventController Class Reference
Inheritance diagram for com.linxonline.mallet.event.EventController:
Inheritance graph
[legend]
Collaboration diagram for com.linxonline.mallet.event.EventController:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 EventController ()
void addEventProcessor (final EventProcessor _processor)
void setAddEventInterface (final AddEventInterface _addInterface)
void setWantedEventTypes (final String[] _types)
void processEvent (final Event _event)
void update ()
void passEvent (final Event _event)
AddEventInterface getAddEventInterface ()
String[] getWantedEventTypes ()

Detailed Description

This is a convience class to reduce Events being processed at the wrong time.

An Event that changes the state should process it's content at the right moment to prevent crashes or unusual behaviour.

This is to prevent chain reactions happening, when an Event is processed during the EventSystem update(). And not during an objects actual update time.


Constructor & Destructor Documentation


Member Function Documentation

Should be called during an update. Override useEvent() if you wish to use the Events passed in


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables