PyObject* InitEvents( int Maxevtpts, int *EventActive, int *EventDir, int *EventTerm, double *EventInterval, double *EventDelay, double *EventTol, int *Maxbisect, double EventNearCoef) { PyObject *OutObj = NULL; if( (gIData == NULL) || gIData->isInitBasic != 1 ){ OutObj = Py_BuildValue("(i)", 0); assert(OutObj); return OutObj; } if( !InitializeEvents( gIData, Maxevtpts, EventActive, EventDir, EventTerm, EventInterval, EventDelay, EventTol, Maxbisect, EventNearCoef ) ){ OutObj = Py_BuildValue("(i)", 0); assert(OutObj); return OutObj; } if( !ResetIndices( gIData ) ) { OutObj = Py_BuildValue("(i)", 0); assert(OutObj); return OutObj; } else { OutObj = Py_BuildValue("(i)", 1); assert(OutObj); } return OutObj; }
Widget::Widget(const Rect& r, HBrush b) // XXX: $2015-03 @ %Documentation::Workflow::Annual2015. : IWidget(), view_ptr(new View(r)), renderer_ptr(new Renderer()), controller_ptr(new WidgetController({})), Background(b) { InitializeEvents(); }
Widget::Widget(const Rect& r) : view_ptr(new View(r)), renderer_ptr(new Renderer()), controller_ptr(new WidgetController({})), Background() { InitializeEvents(); }
void Reset() { me->SetReactState(REACT_PASSIVE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); InitializeEvents(); }