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

List of all members.

Public Member Functions

 EventComponent ()
 EventComponent (final String _name, final String _group)
void setSendToEntityComponents (final boolean _send)
void update (final float _dt)
EventController getEventController ()
void passEvent (final Event _event)

Protected Member Functions

void initEventProcessor ()

Protected Attributes

EventController eventController = new EventController()
boolean sendToEntity = false

Detailed Description

Allows a Component to send or recieve Events during runtime.

An Event Component recieves Events from the Game State it resides within. By overriding processEvent() you can manipulate Events it is registered to view.

You can also use the EventComponent as a filter of sorts before injecting the Game State events into the Entity's internal messaging system.


Constructor & Destructor Documentation

com.linxonline.mallet.entity.EventComponent.EventComponent ( final String  _name,
final String  _group 
)

Member Function Documentation

Convienience method to EventController's passEvent.


Member Data Documentation

EventController com.linxonline.mallet.entity.EventComponent.eventController = new EventController() [protected]

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