EventList

From OPU Wiki


The main EventList holds all events. They are added automatically when you call the CreateOP2Event function. Any class derived from OP2Event also gets added by its creation function. It's based on a Linked List

In order for the event handling to work, the following line is added to the AIProc:

void AIProc(void) 
{
  OP2Events.CheckEvents();
}

You do not need to supply this procedure in your source file(s), as it is already included in Events.cpp

If you need to add more code to the AIProc function, then either /* disable */ the routine in Events.cpp or (if you don't have the source), use the library that doesn't supply this routine. Be sure to include OP2Events.CheckEvents( ) in YOUR AIProc!

Personal tools