cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class PlayerMessage.PlayerLocalMessage
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal
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).
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal |
SimTime |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PlayerMessage.PlayerLocalMessage
public PlayerMessage.PlayerLocalMessage()
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