[Pogamut-list] Getting all the Game information without running an Agent, possible?
Lennie
pogamut-forum at artemis.ms.mff.cuni.cz
Tue Dec 8 10:22:22 CET 2009
Re: Re: Getting all the Game information without running an Agent, possible?
Author: Lennie
> Player scores:
>
> Try GameInfo message: http://artemis.ms.mff.cuni.cz/pogamut/tiki-index.php?page=Gamebots+API+list
> It's under "GAM" message, you may hook a listener to MessageType.GAME_INFO see JavaDoc http://artemis.ms.mff.cuni.cz/pogamut_files/Pogamut_2.4.1_Javadoc.zip under MessageType class.
>
> Also checkout AgentBody.addTypedRcvMsgListener() method that you have to used for that.
>
>
> Regarding flags, check out FLG message at GB doc and MessageType.FLAG_INFO - note that you might not get all info needed (such as flag location or holder) if this information should not be available to the bot (it would be cheating to know the flag's position when the bot can't see it!).
>
So it is not possible for the controlserver to retrieve this information and you do need to either hook up to all the Agents to gather this. Can an Agent in the spectator team see all?
More information about the Pogamut-list
mailing list