Rik's Treehouse > Babbling in Binary > My Software > Orphanware > R2DToo > R2DToo Help > For the Programmer > doSimPause

doSimPause

Declaration
Remarks
Revisions
Example

Declaration

void __stdcall doSimPause(void);
Top of page

Remarks

This function is available through the API. It lets the model programmatically pause the simulation, as if the user pressed the Pause button.
Top of page

Revisions

API v1.5
  • new!
Top of page

Example

double density; //--------------------------------------------------------------------------- void __stdcall onTick(double &time) { forEachAgent(calcDensity); // calcDensity sets density if (density < 0.5) doSimPause(); } //---------------------------------------------------------------------------
Top of page
[Rik's Office Hours] [Contact Rik]
Last updated: Fri Apr 30 2004, 2:36pm