Changes between Initial Version and Version 1 of fm


Ignore:
Timestamp:
Jun 14, 2011 3:52:52 PM (13 years ago)
Author:
jpawlick
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • fm

    v1 v1  
     1This command clears the command queue except for the final command. It is provided to facilitate an atomic way to replace all commands with a single command without introducing a period of no action (the idea is that if you want to replace everything with "ro 5 180 0", you say: "t ro 5 180 0 [NEWLINE] n fm 0", and your quagent will instantly start rotating and forget all prior commands).
     2
     3'''Parameters:'''
     4 * This command does not accept any parameters.
     5
     6'''Reports:'''
     7 * ''done'' immediately.
     8 * ''popped'' if popped by [[po]] before execution.
     9 * ''forgotten'' if deleted by [[fa]] or [[fm]] before execution.
     10 * Causes all but one other actions to report ''forgotten''.
     11
     12'''Example:'''
     13 * User sends: "n mf 16 0 0 1"
     14 * Bot starts moving.
     15 * User sends: "t mf 17 0 90 1"
     16 * User sends: "t mf 18 0 135 1"
     17 * User sends: "t mf 19 0 180 1"
     18 * User sends: "n fm 20"
     19 * Bot replies "cp fa 20 done"
     20 * Bot replies "cp mf 16 forgotten"
     21 * Bot replies "cp mf 17 forgotten"
     22 * Bot replies "cp mf 18 forgotten"
     23 * Bot starts moving backwards (by the instruction "mf 19").