Difference between revisions of "Hat League/Message Format"

From Robowiki
Jump to navigation Jump to search
m (new stub)
 
(link to wiki.team.communication source.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Categoty:Stubs]]
+
To ensure that teammates are able to communicate with one another, a set of standard messages has been created, and a library written to assist with transferring the data to and from teammates.
 +
 
 +
The messages types are as follows:
 +
 
 +
<pre>
 +
PD,time,x,y,h,v,e // personal data
 +
ES,time,x,y,h,v,e,name // enemy scan
 +
BO,time,x,y,h,v // bullet (origin)
 +
BX,time,x,y // cancel bullet / wave
 +
EW,time,x,y,v // enemy wave origin
 +
MR,name // my radar target
 +
MB,name // my bullet target
 +
TR,name // suggested radar target
 +
TB,name // suggested bullet target
 +
NA,message // custom message
 +
</pre>
 +
 
 +
 
 +
Ok .. a while ago I released it as a .jar, but here is the source for my implementation.
 +
 
 +
http://home.comcast.net/~kokyunage/robocode/wiki.team.communication.zip
 +
 
 +
In practice, I have the package renamed pedersen.team.communication, for my pedersen.* line of bots.  Otherwise I get runtime errors when Robocode starts.  It is fairly easy to drag the files to a new location within Eclipse to refactor them.  Let me know if you need more information. -- [[User:Pedersen|Martin]]

Latest revision as of 18:29, 13 February 2008

To ensure that teammates are able to communicate with one another, a set of standard messages has been created, and a library written to assist with transferring the data to and from teammates.

The messages types are as follows:

PD,time,x,y,h,v,e	// personal data
ES,time,x,y,h,v,e,name	// enemy scan
BO,time,x,y,h,v		// bullet (origin)
BX,time,x,y		// cancel bullet / wave
EW,time,x,y,v		// enemy wave origin
MR,name			// my radar target
MB,name			// my bullet target
TR,name			// suggested radar target
TB,name			// suggested bullet target
NA,message		// custom message


Ok .. a while ago I released it as a .jar, but here is the source for my implementation.

http://home.comcast.net/~kokyunage/robocode/wiki.team.communication.zip

In practice, I have the package renamed pedersen.team.communication, for my pedersen.* line of bots. Otherwise I get runtime errors when Robocode starts. It is fairly easy to drag the files to a new location within Eclipse to refactor them. Let me know if you need more information. -- Martin