Rik's Treehouse
>
Babbling in Binary
>
My Software
>
Orphanware
>
R2DToo
>
R2DToo Help
>
For the Programmer
> getSimHeight
getSimHeight
Declaration
Remarks
Revisions
Example
See Also
Declaration
int __stdcall getSimHeight(void);
Remarks
This function must be provided by the model. It is called together with
getSimWidth
at the start of every new simulation to set the size of the simulation space.
getSimHeight
should return a positive integer indicating the vertical 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
getSimWidth
.
[Rik's Office Hours]
[Contact Rik]
Last updated: Fri Apr 30 2004, 1:39pm