38 for (vector<event*>::iterator i = Events.end (); i > Events.begin ();)
45 if (!(*i)->execute (e))
55 vector<event*>::iterator i;
58 i = find (Events.begin (), Events.end (), e);
61 if (i != Events.end ()) Events.erase (i);
Declares the map_event_handler class.
void register_event(event *evnt)
Register a map event with the event handler.
void raise_event(const event *evnt)
Raise one or more events in case the given 'trigger' matches.
Declares the different map events.
void remove_event(event *evnt)
Removes the given event from the event handler.