Rik's Treehouse > Babbling in Binary > My Software > Orphanware > R2DToo > R2DToo Help > For the Programmer > nbrhdVonNeumann |
Declaration Parameters Remarks Example See Also | Declarationvoid __stdcall nbrhdVonNeumann( int range, // range of neighbourhood int boundaryType // type of boundary on world ); ![]() Parameters
![]() RemarksThis function is available through the API. It can be called within the model-supplied routine setNbrhd to set the neighbourhood of each agent to a Von Neumann neighbourhood of range range. This consists of all sites reachable within range steps up or down, but not diagonally (forming a diamond of maximum width 2The neighbours are indexed from left to right and top to bottom. For example, if range=1 the neighbour indices of agent a are
BoundariesBoundaries are handled by the boundaryType parameter which may be one of the following:![]() Example![]() See AlsoonSimCreate, nbrhd1D, nbrhdBlocks, nbrhdCCDM, nbrhdFractal, nbrhdMoore, nbrhdRandom, nbrhdRandomER. |
[Rik's Office Hours] [Contact Rik] Last updated: Fri Apr 30 2004, 1:42pm |