[Pogamut-list] Getting all the Game information without running an Agent, possible?

jakub.gemrot pogamut-forum at artemis.ms.mff.cuni.cz
Tue Dec 8 08:44:04 CET 2009


Re: Getting all the Game information without running an Agent, possible?

Author: jakub.gemrot

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!).

Cheers!
Jakub





More information about the Pogamut-list mailing list