Changes between Version 11 and Version 12 of ProtocolOne


Ignore:
Timestamp:
Jun 10, 2011 9:50:20 AM (13 years ago)
Author:
jherwitz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProtocolOne

    v11 v12  
    22
    33= Live Functions =
    4  '''Actions'''
     4 '''Server Actions'''
    55  {{{move(double dir, double dist, double speed, int obstacles, int priority)}}}
    66   Moves by ''dist'' towards the ''dir'' direction at ''speed'' quickness. ''obstacles'' indicates whether the bot automatically maneuvers past simple obstacles.
     
    1111  {{{rangeFinder(int type, int range, double rot, double azi, int priority)}}}
    1212   Uses the wiki:rangefinder at a limited ''range'', in the direction specified by the ''rot''ational angle and the ''azi''muthal angle. The rangefinder is of the given ''type'' (for more information, see wiki:rf).
     13  {{{rangeFinder(int type, int priority)}}}
     14   Uses the wiki:rangefinder in the current direction, with no limit on distance. Uses the specified ''type''.
    1315  {{{rangeFinder(int priority)}}}
    14    Uses the wiki:rangefinder in the current direction, with no limit on distance.
     16   Uses the wiki:rangefinder in the current direction, with no limit on distance. Uses type #1.
    1517  {{{rotate(double rot, double azi, int priority)}}}
    1618   Rotates the bot by a rotational angle ''rot'' and an azimuthal angle ''azi''.
     19 '''Command Queue management'''
    1720  {{{forgetAllTasks(int priority)}}}
    1821   Clears Quagent command queue, acts as a soft "reset".
     
    2124  {{{pop(int priority)}}}
    2225   Pops action off command queue.
     26  {{{skip(int priority)}}}
     27   Skips the next AI game frame. For more information, see wiki:sk.
     28 '''Server Queries'''
    2329  {{{currentHealth(int priority)}}}
    2430   Returns Quagent's current health.
     
    2935  {{{maxArmour(int priority)}}}
    3036   Returns Quagent's maximum armor.
    31 
     37  {{{canSee(int entityid, int priority)}}}
     38   Returns true if entity can see specified ''wiki:entityid''. Also returns distance, yaw, and pitch to target.
     39 '''wiki:ProtocolOne Actions (compound functions)'''
     40  {{{
     41 
    3242= Example behaviors =
    3343