|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.PlayerLocalImpl
public class PlayerLocalImpl
Implementation of the local part of the GameBots2004 message PLR.
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 | |
---|---|
static class |
PlayerLocalImpl.PlayerLocalUpdate
|
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal |
---|
PlayerLocal.ObjectDisappeared |
Field Summary | |
---|---|
protected UnrealId |
Id
Unique Id of the player. |
protected java.lang.String |
Jmx
Exported just for control server. |
protected boolean |
Reachable
True if the bot can run to this other player directly, false otherwise. |
protected boolean |
Visible
If the player is in the field of view of the bot. |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal |
---|
SimTime |
Constructor Summary | |
---|---|
PlayerLocalImpl()
Parameter-less contructor for the message. |
|
PlayerLocalImpl(Player original)
Cloning constructor from the full message. |
|
PlayerLocalImpl(PlayerLocal original)
Cloning constructor from the message part. |
|
PlayerLocalImpl(PlayerLocalImpl original)
Cloning constructor from the full message. |
|
PlayerLocalImpl(UnrealId Id,
java.lang.String Jmx,
boolean Visible,
boolean Reachable)
Creates new instance of the message Player. |
Method Summary | |
---|---|
PlayerLocalImpl |
clone()
|
UnrealId |
getId()
Unique Id of the player. |
java.lang.String |
getJmx()
Exported just for control server. |
PlayerLocalImpl |
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. |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerLocal |
---|
createDisappearEvent, getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected java.lang.String Jmx
protected boolean Visible
protected boolean Reachable
Constructor Detail |
---|
public PlayerLocalImpl()
public PlayerLocalImpl(UnrealId Id, java.lang.String Jmx, boolean Visible, boolean Reachable)
Id
- Unique Id of the player.Jmx
- Exported just for control server. Holds jmx address we need to connect to
when we want to debug our bot.Visible
- If the player is in the field of view of the bot.Reachable
- True if the bot can run to this other player directly, false
otherwise. Possible reasons for false: pit or obstacle
between the two characters.public PlayerLocalImpl(Player original)
original
- public PlayerLocalImpl(PlayerLocalImpl original)
original
- public PlayerLocalImpl(PlayerLocal original)
original
- Method Detail |
---|
public void setSimTime(long SimTime)
PlayerLocal
setSimTime
in class PlayerLocal
public PlayerLocalImpl clone()
clone
in interface ILocalWorldObject
clone
in class PlayerLocal
public UnrealId getId()
getId
in interface IWorldObject
getId
in class PlayerLocal
public java.lang.String getJmx()
getJmx
in class PlayerLocal
public boolean isVisible()
isVisible
in interface ILocalViewable
isVisible
in class PlayerLocal
public boolean isReachable()
isReachable
in class PlayerLocal
public PlayerLocalImpl getLocal()
getLocal
in class PlayerLocal
public ISharedWorldObject getShared()
getShared
in class PlayerLocal
public IStaticWorldObject getStatic()
getStatic
in class PlayerLocal
public java.lang.String toString()
toString
in class PlayerLocal
public java.lang.String toHtmlString()
toHtmlString
in class PlayerLocal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |