[Pogamut-list] getting score of the game

ravyoli pogamut-forum at artemis.ms.mff.cuni.cz
Mon May 18 15:07:59 CEST 2009


getting score of the game

Author: ravyoli

Hello,
I am trying to get the number of kills/deaths the bots did during the game. I thought of using the GameStatus message, but it doesnt seem to work properly since im connecting multiple bots to the server (for example 4 bots), but the game status shows the score for one bot only.
So, instead im overriding the receiveMessage(RcvMsgEvent e), and catch the messages of type BOT_KILLED and PLAYER_KILLED, which almost works fine for me besides one problem: I cant catch the last kill/death in the game which causes the game to finish. It seems that the bot finds out the game ends and terminates the passing of the messages, before it passes the message of BOT_KILLED/PLAYER_KILLED.

Anyone have any ideas for a possible solution? thanks!





More information about the Pogamut-list mailing list