|
||||||||||
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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Unique Id of the player. |
protected String |
Jmx
Exported just for control server. |
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(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
String Jmx,
boolean Visible)
Creates new instance of the message Player. |
Method Summary | |
---|---|
PlayerLocalImpl |
clone()
|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Unique Id of the player. |
String |
getJmx()
Exported just for control server. |
PlayerLocalImpl |
getLocal()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject |
getShared()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject |
getStatic()
|
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. |
String |
toHtmlString()
|
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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected String Jmx
protected boolean Visible
Constructor Detail |
---|
public PlayerLocalImpl()
public PlayerLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, String Jmx, boolean Visible)
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.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 cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject
clone
in class PlayerLocal
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in class PlayerLocal
public String getJmx()
getJmx
in class PlayerLocal
public boolean isVisible()
isVisible
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalViewable
isVisible
in class PlayerLocal
public PlayerLocalImpl getLocal()
getLocal
in class PlayerLocal
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
getShared
in class PlayerLocal
public cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
getStatic
in class PlayerLocal
public String toString()
toString
in class PlayerLocal
public String toHtmlString()
toHtmlString
in class PlayerLocal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |