The Agent2d method (the constructor) performs the following:
This method is used by an agent to select an agent in the immediate vincinity. The vicinity is specified by a width argument. If several agents are in the vicinity, one is chosen randomly. By use of this method, agents never have to abuse absolute coordinates to `see'.
moveAgent moves an agent relativistically on the grid.
moveAdjacentToNeighbor moves an agent relavistically on the grid to be adjacent to a neighboring agent.
Moves the agent in a random direction with a maximum distance of `scatter'
This method is called to draw the agent on the screen. The default behavior is to draw a small dot in the center of the agent so that the user knows where to right-click in order to get a ProbeDisplay
This doesn't do anything, but a shared method that any agent will respond. Subclasses implement this. When one agent tries to influence another, the receiver has this method called.