Chapter 7. Interactions Between Agents

This chapter describes implementing interactions between agents in a breve simulation.

Interacting With the Controller Object

The controller object is the heart and soul of a breve simulation and every object should be able to speak to it. The class Object—and thus all other classes ever created in breve—has a variable called controller which is the simulation's controller instance.

This simply means that the expression "controller" will automatically refer to the simulation's controller instance. You should not try to modify the value of the controller variable, as this will have unexpected results on the simulation.