Order of actions
From WikiManual
The order of actions is the order of steps that bots take during a cycle to interact within their environment. All actions are done after the DNA executes and changes the bots' memory locations. Bots execute each step in the order of actions by their order in the robots array. Bots with lower ids will execute before bots with higher ids. All bots must complete each step before any bot may move on to the next step. All actions occur in the following order:
- .readtie is set, and reads tie information into Trefs
- delgene happens
-
- Communication using ties occurs.
- Ties are updated (that is, things like .sharenrg, deleting ties, and feeding through ties. Does not include firing ties though)
-
- The bot turns.
- Position is updated (things like accelerations, velocity, collisions, etc. Also updates the eye positions)
- Slime and shell are made.
- Shoot commands occur
- Viruses are shot
- Buoyancy is set
- Storing body, venom, and poison
- Feeding from body
- Firing of ties
- Reproduction
- Death