Rik's Treehouse
>
Babbling in Binary
>
My Software
>
Orphanware
>
R2DToo
>
R2DToo Help
>
For the Programmer
> getSimWidth
getSimWidth
Declaration
Remarks
Revisions
Example
See Also
Declaration
int __stdcall getSimWidth(void);
Remarks
This function must be provided by the model. It is called together with
getSimHeight
at the start of every new simulation to set the size of the simulation space.
getSimWidth
should return a positive integer indicating the horizontal dimension of the simulation world. Minimum allowed value is one.
Revisions
API v1.5
new! Replaces
simBegin
.
Example
//--------------------------------------------------------------------------- int __stdcall
getSimHeight
(void) /* Returns vertical extent of simulation space. (Required.) */ { return int(*
getParamRef
("World Height")); } //--------------------------------------------------------------------------- int __stdcall
getSimWidth
(void) /* Returns horizontal extent of simulation space. (Required.) */ { return int(*
getParamRef
("World Width")); } //---------------------------------------------------------------------------
See Also
getSimHeight
.
[Rik's Office Hours]
[Contact Rik]
Last updated: Fri Apr 30 2004, 1:39pm