[Pogamut-list] Receive Kill Message
gotzl
pogamut-forum at artemis.ms.mff.cuni.cz
Fri Dec 11 18:19:16 CET 2009
Receive Kill Message
Author: gotzl
HI Guys
I want to get the PlayerKilled message so I wrote this code:
@Override
public void receiveMessage(RcvMsgEvent e)
{
switch(e.getMessage().type)
{
case PLAYER_KILLED:
PlayerKilled pk = (PlayerKilled)e.getMessage();
break;
}
}
The result I expected from this was to get ONE message directly after someone got killed. But what I get are many messages (of the same type) for ONE kill.
The question is, what am I doing wrong ??
Thanks, gotzl
More information about the Pogamut-list
mailing list