Order of actions

From WikiManual
Revision as of 20:43, 6 July 2008 by Jarbon (talk | contribs) (Created an article for the order of actions based on information posted in the tips and tricks subforum.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:

  1. .readtie is set, and reads tie information into Trefs
  2. delgene happens
    1. Communication using ties occurs.
    2. Ties are updated (that is, things like .sharenrg, deleting ties, and feeding through ties. Does not include firing ties though)
    1. The bot turns.
    2. Position is updated (things like accelerations, velocity, collisions, etc. Also updates the eye positions)
  3. Slime and shell are made.
  4. Shoot commands occur
  5. Viruses are shot
  6. Buoyancy is set
  7. Storing body, venom, and poison
  8. Feeding from body
  9. Firing of ties
  10. Reproduction
  11. Death