|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.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 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(UnrealId Id,
String Jmx,
boolean Visible)
Creates new instance of the message Player. |
|
| Method Summary | |
|---|---|
PlayerLocalImpl |
clone()
|
UnrealId |
getId()
Unique Id of the player. |
String |
getJmx()
Exported just for control server. |
PlayerLocalImpl |
getLocal()
|
ISharedWorldObject |
getShared()
|
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 cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected UnrealId Id
protected String Jmx
protected boolean Visible
| Constructor Detail |
|---|
public PlayerLocalImpl()
public PlayerLocalImpl(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 PlayerLocalpublic PlayerLocalImpl clone()
clone in interface ILocalWorldObjectclone in class PlayerLocalpublic UnrealId getId()
getId in interface IWorldObjectgetId in class PlayerLocalpublic String getJmx()
getJmx in class PlayerLocalpublic boolean isVisible()
isVisible in interface ILocalViewableisVisible in class PlayerLocalpublic PlayerLocalImpl getLocal()
getLocal in class PlayerLocalpublic ISharedWorldObject getShared()
getShared in class PlayerLocalpublic IStaticWorldObject getStatic()
getStatic in class PlayerLocalpublic String toString()
toString in class PlayerLocalpublic String toHtmlString()
toHtmlString in class PlayerLocal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||