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);
Remarks
This function is available through the API. It lets the model programmatically pause the simulation, as if the user pressed the Pause button.
Revisions
API v1.5
new!
Example
double density; //--------------------------------------------------------------------------- void __stdcall
onTick
(double &time) {
forEachAgent
(calcDensity); // calcDensity sets density if (density < 0.5) doSimPause(); } //---------------------------------------------------------------------------
[Rik's Office Hours]
[Contact Rik]
Last updated: Fri Apr 30 2004, 2:36pm