Members
neighbors
Return an array of this patch's 8 Moore neighbors.
neighbors4
Return an array of this patch's 4 Von Neumann neighbors (north, south, east, west).
turtlesHere
Return an Array of the turtles on this patch.
Methods
isOnEdge() → {boolean}
Return whether or not this patch is on the edge of the atches.
Returns:
- Type:
- boolean
breedsHere(breed) → {AgentArray}
Returns an Array of the particular breed on this patch.
Parameters:
Name | Type | Description |
---|---|---|
breed | String |
Returns:
- Type:
- AgentArray