![]() |
DSC Engine
|
Class responsible with event registration and execution. More...
#include <event.hpp>
Public Member Functions | |
| Event () | |
| Creates a new Event instance. | |
| Event & | operator+= (const StaticEventHandler &e) |
| Adds a new event handler to this event. More... | |
| Event & | operator-= (const StaticEventHandler &e) |
| Removes an event handler from this event. More... | |
| template<class C > | |
| void | add_event (const NonStaticEventHandler< C > e, C *instance) |
| template<class C > | |
| void | remove_event (const NonStaticEventHandler< C > e, C *instance) |
| void | trigger (void *sender, void *args) const |
| Fires the event. More... | |
Class responsible with event registration and execution.
| Event & DSC::Event::operator+= | ( | const StaticEventHandler & | e | ) |
| Event & DSC::Event::operator-= | ( | const StaticEventHandler & | e | ) |
| void DSC::Event::trigger | ( | void * | sender, |
| void * | args | ||
| ) | const |
Fires the event.
| [in] | sender | the object which fires the event |
| [in] | event | args (can be anything) |