Rik's Treehouse
>
Babbling in Binary
>
My Software
>
Orphanware
>
R2DToo
>
R2DToo Help
>
For the Programmer
> getTickVal
getTickVal
Declaration
Return Value
Remarks
Revisions
Example
See Also
Declaration
tParam __stdcall getTickVal(void);
Return Value
The current simulation time (tick).
Remarks
This function is available through the API. Use it to retrieve the current simulation time (tick).
Revisions
API v1.6
new!
Example
//--------------------------------------------------------------------------- bool iterate(pState state, int x, int y, pState *nbr, int nbrCount, int feaMode) // one iteration of the Mandelbrot set { if (feaMode!=feaContinue) return true; tParam r = state[2], i = state[3]; state[2] = state[0] + r*r - i*i; state[3] = state[1] + 2.0*r*i; state[4] = state[2]*state[2] + state[3]*state[3]; if (state[4]>5) state[5] = getTickVal(); return true; } //--------------------------------------------------------------------------- void __stdcall onTick(double &time) { forEachAgent(iterate); } //---------------------------------------------------------------------------
See Also
getTickRef
.
[Rik's Office Hours]
[Contact Rik]
Last updated: Fri Apr 30 2004, 1:40pm