40 while (!Events.empty () && Events.front ()->equals (e))
42 evt = Events.front ();
46 Events.erase (Events.begin ());
47 evt->set_registered (
false);
50 repeat = evt->execute (e);
63 vector<event*>::iterator i;
66 i = find (Events.begin (), Events.end (), e);
69 if (i != Events.end ()) Events.erase (i);
75 vector<event*>::iterator i = Events.begin ();
78 while (i != Events.end ())
#define s_int32
32 bits long signed integer
void remove_event(event *evnt)
Removes the given event from the event handler.
The time event executes the attached script or callback at a certain point in game-time.
void raise_event(const event *evnt)
Raise one or more events in case the given time matches their "alarm" time.
Declares the gamedate class.
Declares the time_event_handler class.
void register_event(event *evnt)
Register a time event with the event handler.
Declares the time_event class.