[Pogamut-list] Bugs

jakub.gemrot pogamut-forum at artemis.ms.mff.cuni.cz
Wed Sep 10 08:49:48 CEST 2008


Re: Re: Bugs
> 
> 
> --> Player.team returns different number than Agent.memory.getAgentTeam();

Hi gal,

what do you mean by this? The code for the Agent.memory.getAgentTeam():

public int getAgentTeam() {
if (hasSelf())
  return ((Self) this.myHistory.getFirstMessageOfType(MessageType.SELF)).getSelfTeam();
else
  return -1;
}

How do you obtain your Player instance? 

Cheers, Jakub

----

Reply Link: <https://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=5&comments_reply_threadId=230&comments_parentId=194&post_reply=1#form>





More information about the Pogamut-list mailing list