cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class PlayerMessage.PlayerLocalMessage

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerMessage.PlayerLocalMessage
All Implemented Interfaces:
IWorldObject, ILocalViewable, ILocalWorldObject, ILocalGBViewable, java.lang.Cloneable
Enclosing class:
PlayerMessage

public class PlayerMessage.PlayerLocalMessage
extends PlayerLocal

Implementation of the local part of the GameBots2004 message PLR, used to facade PLRMessage.

Complete message documentation: Synchronous message. Contains information about other players in the game, like their current velocity, position, weapon and reachability. Only reports those players that are visible. (within field of view and not occluded).


Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal
PlayerLocal.ObjectDisappeared
 
Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal
SimTime
 
Constructor Summary
PlayerMessage.PlayerLocalMessage()
           
 
Method Summary
 PlayerMessage.PlayerLocalMessage clone()
           
 UnrealId getId()
          Unique Id of the player.
 java.lang.String getJmx()
          Exported just for control server.
 PlayerMessage.PlayerLocalMessage getLocal()
           
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 boolean isReachable()
          True if the bot can run to this other player directly, false otherwise.
 boolean isVisible()
          If the player is in the field of view of the bot.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal
createDisappearEvent, getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayerMessage.PlayerLocalMessage

public PlayerMessage.PlayerLocalMessage()
Method Detail

clone

public PlayerMessage.PlayerLocalMessage clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class PlayerLocal

getLocal

public PlayerMessage.PlayerLocalMessage getLocal()
Overrides:
getLocal in class PlayerLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class PlayerLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class PlayerLocal

getId

public UnrealId getId()
Unique Id of the player.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class PlayerLocal
Returns:

getJmx

public java.lang.String getJmx()
Exported just for control server. Holds jmx address we need to connect to when we want to debug our bot.

Specified by:
getJmx in class PlayerLocal

isVisible

public boolean isVisible()
If the player is in the field of view of the bot.

Specified by:
isVisible in interface ILocalViewable
Specified by:
isVisible in class PlayerLocal
Returns:

isReachable

public boolean isReachable()
True if the bot can run to this other player directly, false otherwise. Possible reasons for false: pit or obstacle between the two characters.

Specified by:
isReachable in class PlayerLocal

toString

public java.lang.String toString()
Overrides:
toString in class PlayerLocal

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class PlayerLocal