Adonthell
0.4
|
Declares the event_list class. More...
Go to the source code of this file.
Classes | |
class | event_list |
Base class for objects that want to register events. More... | |
Defines | |
#define | REGISTER_EVENT(type, evt) event_list::register_event (type, (new_event) &new_ ## evt); |
Registers an event with the event_list, allowing it to load this event without knowing about it at compile time. | |
#define | NEW_EVENT(evt) event* new_ ## evt () { return (event*) new evt; } |
A function that returns a new instance of an event. | |
Typedefs | |
typedef event *(* | new_event )() |
Pointer to a function returning a newly allocated event. |
Declares the event_list class.
Definition in file event_list.h.
#define REGISTER_EVENT | ( | type, | |
evt | |||
) | event_list::register_event (type, (new_event) &new_ ## evt); |
Registers an event with the event_list, allowing it to load this event without knowing about it at compile time.
Definition at line 193 of file event_list.h.
A function that returns a new instance of an event.
Definition at line 199 of file event_list.h.
Pointer to a function returning a newly allocated event.
Definition at line 37 of file event_list.h.