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);
Top of page

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. Top of page

Revisions

API v1.5
  • new! Replaces simBegin.
Top of page

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")); } //--------------------------------------------------------------------------- Top of page

See Also

getSimWidth.
Top of page
[Rik's Office Hours] [Contact Rik]
Last updated: Fri Apr 30 2004, 1:39pm