robocup-atan / atan

Robocup 2D Soccer Server Java Interface
MIT License
20 stars 6 forks source link

infoHearPlayer does not provide a valid message #9

Closed verbitan closed 10 years ago

verbitan commented 12 years ago

(Copied from sourceforge)

The method ControllerPlayer.infoHearPlayer(double direction, String message) takes two parameters. The message parameter do not return message from other player but info if player is from "opp" or "our" team. What is more, infoHearPlayer dont provide player number.

Example:

  1. PlayerOne and PlayerTwo are in the same team.
  2. PlayerOne calls method ActionPlayer.say("Something");
  3. Atan calls method ControllerPlayer.infoHearPlayer(direction, message) of PlayerTwo, where direction is correct value but message is only "our" and does not contain PlayerOne number and message content.
verbitan commented 12 years ago

According to the SServer manual, the expected format for a hear message is:

(hear Time Sender ”Message”)

This appears to be what's being looked for in the parser. This needs further investigation, especially as the manual is reasonably out of date now.

verbitan commented 10 years ago

Now that I've added tests this is not an issue.