63 for (
int i = 0; i < MAX_EVENTS; i++)
64 if (Handler[i] != NULL)
This is the base class for actual event handlers.
Declares the event_handler class.
To notify when a mapcharacter left a mapsquare.
Declares the map_event_handler class.
To notify when a mapcharacter "act" on a square.
#define NEW_EVENT(evt)
A function that returns a new instance of an event.
To notify when a character entered a mapsquare.
This class keeps track of map events, i.e.
The time event executes the attached script or callback at a certain point in game-time.
static void cleanup()
Delete the event handlers.
Declares the time_event_handler class.
Declares the time_event class.
#define REGISTER_EVENT(type, evt)
Registers an event with the event_list, allowing it to load this event without knowing about it at co...
Declares the different map events.
It ensures global access to the individual event handlers.
This class keeps track of time events, i.e.