1 #ifndef Rag_EventDispatcher_h
2 #define Rag_EventDispatcher_h
5 #include "EventListener.h"
21 void addEventListener(std::string type,
EventListener* listener);
22 void dispatchEvent(
Event& event);
23 bool hasEventListener(std::string type);
24 void removeEventListener(std::string type,
EventListener* listener);
28 std::map<std::string, std::vector<EventListener*> > listeners;
Base class for event system.
Definition: Event.h:24
Base class used to dispatch events.
Definition: EventDispatcher.h:14
Interface that allows to listen events.
Definition: EventListener.h:10