|
Tool Trigger
|
||||||||
| Definition: | The Tool trigger is used to program an agent to respond to clicks with the worksheet tools.
The rules located in a method labeled with a Tool trigger are executed whenever the executing agent senses a click from the designated tool, whether the simulation is running or not. |
|||||||
![]() |
Warning: If you redefine the Arrow, Eraser, and Pencil tools, you will overwrite system functionality as follows:
|
|||||||
| Parameters: | Tool | |||||||
| Example: |
When the Pencil tool is used on the Cell agent in the Game of Life simulation, it toggles between the dead and alive depictions.
|
|||||||