#include <src/orxonox/objects/EventDispatcher.h>
Public Member Functions | |
void | addTarget (EventTarget *target) |
EventDispatcher (BaseObject *creator) | |
EventTarget * | getTarget (unsigned int index) const |
virtual void | processEvent (Event &event) |
virtual void | XMLPort (Element &xmlelement, XMLPort::Mode mode) |
XML loading and saving. | |
virtual | ~EventDispatcher () |
Private Attributes | |
std::list< EventTarget * > | targets_ |
orxonox::EventDispatcher::EventDispatcher | ( | BaseObject * | creator | ) |
References RegisterObject.
orxonox::EventDispatcher::~EventDispatcher | ( | ) | [virtual] |
References orxonox::BaseObject::isInitialized(), and targets_.
void orxonox::EventDispatcher::addTarget | ( | EventTarget * | target | ) |
EventTarget * orxonox::EventDispatcher::getTarget | ( | unsigned int | index | ) | const |
void orxonox::EventDispatcher::processEvent | ( | Event & | event | ) | [virtual] |
void orxonox::EventDispatcher::XMLPort | ( | Element & | xmlelement, | |
XMLPort::Mode | mode | |||
) | [virtual] |
XML loading and saving.
xmlelement | The XML-element | |
loading | Loading (true) or saving (false) |
Reimplemented from orxonox::BaseObject.
References addTarget(), getTarget(), SUPER, and XMLPortObject.
std::list<EventTarget*> orxonox::EventDispatcher::targets_ [private] |
Referenced by addTarget(), getTarget(), processEvent(), and ~EventDispatcher().