R-Type
|
class that store all the callback functions for a specific event type More...
#include <Event.hpp>
Public Member Functions | |
EventHandler (const EventType eventType) | |
void | publish (EventData eventData) |
call all the subscribed functions with the given eventData More... | |
void | publish () |
call all the subscribed functions with no data (use when EventData == NoEventData) More... | |
template<typename Function > | |
void | subscribe (const Function &function) |
register the given function to be called when the event is published More... | |
class that store all the callback functions for a specific event type
EventData | type of the data to send to subscribed functions when publishing events |
|
inline |
|
inline |
call all the subscribed functions with no data (use when EventData == NoEventData)
|
inline |
call all the subscribed functions with the given eventData
eventData | data to be given to subscribed functions |
|
inline |
register the given function to be called when the event is published
function | function to be registerer |