Changes between Version 11 and Version 12 of ProtocolOne
- Timestamp:
- Jun 10, 2011 9:50:20 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProtocolOne
v11 v12 2 2 3 3 = Live Functions = 4 ''' Actions'''4 '''Server Actions''' 5 5 {{{move(double dir, double dist, double speed, int obstacles, int priority)}}} 6 6 Moves by ''dist'' towards the ''dir'' direction at ''speed'' quickness. ''obstacles'' indicates whether the bot automatically maneuvers past simple obstacles. … … 11 11 {{{rangeFinder(int type, int range, double rot, double azi, int priority)}}} 12 12 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''. 13 15 {{{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. 15 17 {{{rotate(double rot, double azi, int priority)}}} 16 18 Rotates the bot by a rotational angle ''rot'' and an azimuthal angle ''azi''. 19 '''Command Queue management''' 17 20 {{{forgetAllTasks(int priority)}}} 18 21 Clears Quagent command queue, acts as a soft "reset". … … 21 24 {{{pop(int priority)}}} 22 25 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''' 23 29 {{{currentHealth(int priority)}}} 24 30 Returns Quagent's current health. … … 29 35 {{{maxArmour(int priority)}}} 30 36 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 32 42 = Example behaviors = 33 43