public interface Patch
Interface provides access to NetLogo patches.
| Method Summary | |
|---|---|
Patch |
getPatchAtOffsets(double dx,
double dy)
Returns the patch at dx and dy from this patch |
boolean |
hasLabel()
Returns true if the label variable contains something other than an empty string |
Object |
labelColor()
Returns the value of the label-color variable |
String |
labelString()
Returns the value of the label variable |
Object |
pcolor()
Returns the value of the pcolor variable |
int |
pxcor()
Returns the value of the pxcor variable |
int |
pycor()
Returns the value of the pycor variable |
| Methods inherited from interface org.nlogo.api.Agent |
|---|
classDisplayName, getVariable, id, setVariable, shape, size, world |
| Method Detail |
|---|
int pxcor()
pxcor variable
int pycor()
pycor variable
String labelString()
label variable
Object labelColor()
label-color variable
boolean hasLabel()
label variable contains something other than an empty string
Object pcolor()
pcolor variable
Patch getPatchAtOffsets(double dx,
double dy)
throws AgentException
dx - the x offset from this patchdy - the y offset from this patch
AgentException