Version 1 (modified by jherwitz, 13 years ago) (diff) |
---|
wiki:ProtocolOne is the Java API which abstracts the Quagents game engine to a simple Java interface. The underlying clientside structure maintains data transmission, reception, and storage, while providing an API of all possible Quagent actions. Currently implemented functions are described below. It is important to note that these functions mirror those defined in wiki:ProtocolZero, with slight syntactic differences. For all functions, a priority '1' indicates a "now" command and a priority "0" indicates a "then" command (this will change to a more intuitive format soon). All commands return the "commandid", which references the wiki:Command? structure.
Live Functions
Actions
move(double dir, double dist, double speed, int obstacles, int priority)
- Moves by dir towards the dist direction at speed quickness. obstacles indicates whether the bot automatically maneuvers past simple obstacles.