Nimbus
0.2
A game... with arrows... which should be clouds
|
#include <EventListener.h>
Public Member Functions | |
virtual void | handleEvent (payloadmap payload, EventListener *responder=NULL)=0 |
EventListener is a pure virtual class outlining a class that handles specific events.
The idea behind EventListener being pure virtual means that any object can create its own subclass of EventListenter, providing handling for their own specific events. This allows the EventListener to handle its parent's member variables and functions, while providing a simple layer of inheritence for the EventListener.
|
pure virtual |
handleEvent is called when the listener is required to handle an event. This function should be overridden and implemented in order to handle the specific event this handler is destined to handle.
payload | A C++ STL map using a string key and a void* for data storage. |
Implemented in Nimbus::EventSystem::GlobalListener, Nimbus::WindManager::TickListener, Nimbus::EntityManager::PositionResponseListener, Nimbus::WindManager::MouseWindEndListener, Nimbus::EntityManager::TickListener, Nimbus::WindManager::MouseWindStartListener, Nimbus::WindManager::MouseWindUpdateListener, Nimbus::EntityManager::DestroyEntityListener, Nimbus::Flocking::UpdateListener, Nimbus::NimbusApplication::ShutdownListener, Nimbus::Transformational::TranslationQueryListener, Nimbus::EntityManager::CatchEntityListener, Nimbus::Transformational::TranslationListener, Nimbus::Flocking::TickListener, Nimbus::WindMap::ArrowCatcher, Nimbus::EntityManager::CreateEntityListener, Nimbus::Flocking::SoarListener, Nimbus::Camera::MousePositionListener, Nimbus::VectorMap::CatchEntityListener, and Nimbus::Renderable::PositionListener.