This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

BZRobots/Protocol: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Line 4: Line 4:
=Protocol Description=
=Protocol Description=


'''Backend To Frontend Messages'''
{| cellspacing="0" border="1"
{| cellspacing="0" border="1"
|+ Backend -> frontend messages
!Message syntax
!Message syntax
!Description
!Description
Line 13: Line 14:
|}
|}


'''Frontend To Backend Messages'''
{| cellspacing="0" border="1"
{| cellspacing="0" border="1"
|+ Frontend -> backend messages
!Message syntax
!Message syntax
!Description
!Description

Revision as of 17:05, 26 June 2007

Overview

This page describes the BZRobots Enhanced Protocol that is part of the Programmable Computer Player Client project for the Google Summer Of Code.

Protocol Description

Backend To Frontend Messages

Message syntax Description
SOME_COMMAND_HERE <float> THIS RUNS SOME COMMAND WITH FLOAT ARGUMENT


Frontend To Backend Messages

Message syntax Description
setAhead <distance> Sets planned movement (for next 'execute') that moves 'distance' units.
setBack <distance> Sets planned movement backwards, same as setAhead -distance
setTurnLeft <degrees> Sets planned turn (for next 'execute') that turns 'degrees' degrees to the left.
setTurnRight <degrees> Sets planned turn (for next 'execute') that turns 'degrees' degrees to the right, same as setTurnLeft -degrees.
setFire Sets a planned shot (for next 'execute')
setTurnRate Sets next actions turnrate. (for next 'execute')
setSpeed Sets next actions speed. (for next 'execute')
getDistanceRemaining Gives a 'distanceRemaining'-reply with how much is left of the currently planned movement.
getTurnRemaining Gives a 'turnRemaining'-reply with how much is left of the currently planned turn.
execute Runs a tick of the 'planned actions', and replies with a 'tick over' when the tick has passed.

See Also

BZRobots/About - Project Overview

BZRobots/Ideas - Feature suggestions / thoughts