New Action

From AgentCubes
Revision as of 21:28, 20 April 2012 by imported>Corrina
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

New action.png

New action additional params.png

Definition: The New action: generates a new agent in the cell indicated with the shape selected.
Parameters:

direction: specifies where to create a new agent.

shape: specifies the type of new agent.

Additional Parameters: layer: specifies on which layer to put the new agent.
Example: In the Frogger game, the Tunnel agent generates new Trucks to its right, once every 0.6 seconds, with a 25% chance, as long as there is road where it is supposed to create the new car (to avoid piling cars on top of each other). New action example.png