public class PlayerMessage extends Player implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent
Modifier and Type | Class and Description |
---|---|
class |
PlayerMessage.PlayerLocalMessage
Implementation of the local part of the GameBots2004 message PLR, used
to facade PLRMessage.
|
class |
PlayerMessage.PlayerSharedMessage
Implementation of the shared part of the GameBots2004 message PLR, used
to facade PLRMessage.
|
class |
PlayerMessage.PlayerStaticMessage
Implementation of the static part of the GameBots2004 message PLR, used
to facade PLRMessage.
|
Player.ObjectDisappeared, Player.PlayerUpdate
IWorldObjectUpdatedEvent.DestroyWorldObject
Modifier and Type | Field and Description |
---|---|
protected String |
Action
Atomic action this bot is doing (BDI).
|
protected boolean |
Action_Set
Whether property 'Action' was received from GB2004.
|
protected String |
Anim
For UE2.
|
protected boolean |
Anim_Set
Whether property 'Anim' was received from GB2004.
|
protected String |
Bubble
For UE2.
|
protected boolean |
Bubble_Set
Whether property 'Bubble' was received from GB2004.
|
protected boolean |
Crouched
True if the bot is crouched.
|
protected boolean |
Crouched_Set
Whether property 'Crouched' was received from GB2004.
|
protected String |
EmotCenter
For UE2.
|
protected boolean |
EmotCenter_Set
Whether property 'EmotCenter' was received from GB2004.
|
protected String |
EmotLeft
For UE2.
|
protected boolean |
EmotLeft_Set
Whether property 'EmotLeft' was received from GB2004.
|
protected String |
EmotRight
For UE2.
|
protected boolean |
EmotRight_Set
Whether property 'EmotRight' was received from GB2004.
|
protected int |
Firing
0 means is not firing, 1 - firing in primary mode, 2 -
firing in secondary mode (alt firing).
|
protected boolean |
Firing_Set
Whether property 'Firing' was received from GB2004.
|
protected UnrealId |
Id
Unique Id of the player.
|
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004.
|
protected String |
Jmx
Exported just for control server.
|
protected boolean |
Jmx_Set
Whether property 'Jmx' was received from GB2004.
|
protected Location |
Location
An absolute location of the player within the map.
|
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004.
|
protected String |
Name
Human readable name of the player.
|
protected boolean |
Name_Set
Whether property 'Name' was received from GB2004.
|
protected Rotation |
Rotation
Which direction the player is facing in absolute terms.
|
protected boolean |
Rotation_Set
Whether property 'Rotation' was received from GB2004.
|
protected int |
Team
What team the player is on.
|
protected boolean |
Team_Set
Whether property 'Team' was received from GB2004.
|
protected ITeamId |
TeamId |
protected Velocity |
Velocity
Absolute velocity of the player as a vector of movement per one
game second.
|
protected boolean |
Velocity_Set
Whether property 'Velocity' was received from GB2004.
|
protected boolean |
Visible
If the player is in the field of view of the bot.
|
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004.
|
protected String |
Weapon
Class of the weapon the player is holding.
|
protected boolean |
Weapon_Set
Whether property 'Weapon' was received from GB2004.
|
Constructor and Description |
---|
PlayerMessage()
Parameter-less contructor for the message.
|
PlayerMessage(PlayerMessage original)
Cloning constructor from the full message.
|
PlayerMessage(UnrealId Id,
String Jmx,
String Name,
String Action,
boolean Visible,
Rotation Rotation,
Location Location,
Velocity Velocity,
int Team,
String Weapon,
boolean Crouched,
int Firing,
String EmotLeft,
String EmotCenter,
String EmotRight,
String Bubble,
String Anim)
Creates new instance of the message Player.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Atomic action this bot is doing (BDI).
|
String |
getAnim()
For UE2.
|
String |
getBubble()
For UE2.
|
String |
getEmotCenter()
For UE2.
|
String |
getEmotLeft()
For UE2.
|
String |
getEmotRight()
For UE2.
|
int |
getFiring()
0 means is not firing, 1 - firing in primary mode, 2 -
firing in secondary mode (alt firing).
|
UnrealId |
getId()
Unique Id of the player.
|
String |
getJmx()
Exported just for control server.
|
PlayerLocal |
getLocal() |
ILocalWorldObjectUpdatedEvent |
getLocalEvent() |
Location |
getLocation()
An absolute location of the player within the map.
|
String |
getName()
Human readable name of the player.
|
Rotation |
getRotation()
Which direction the player is facing in absolute terms.
|
PlayerShared |
getShared() |
ISharedWorldObjectUpdatedEvent |
getSharedEvent() |
PlayerStatic |
getStatic() |
IStaticWorldObjectUpdatedEvent |
getStaticEvent() |
int |
getTeam()
What team the player is on.
|
ITeamId |
getTeamId() |
Velocity |
getVelocity()
Absolute velocity of the player as a vector of movement per one
game second.
|
String |
getWeapon()
Class of the weapon the player is holding.
|
boolean |
isCrouched()
True if the bot is crouched.
|
boolean |
isVisible()
If the player is in the field of view of the bot.
|
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.
|
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object) |
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSimTime
protected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected String Jmx
protected boolean Jmx_Set
protected String Name
protected boolean Name_Set
protected String Action
protected boolean Action_Set
protected boolean Visible
protected boolean Visible_Set
protected Rotation Rotation
protected boolean Rotation_Set
protected Location Location
protected boolean Location_Set
protected Velocity Velocity
protected boolean Velocity_Set
protected int Team
protected boolean Team_Set
protected String Weapon
protected boolean Weapon_Set
protected boolean Crouched
protected boolean Crouched_Set
protected int Firing
protected boolean Firing_Set
protected String EmotLeft
protected boolean EmotLeft_Set
protected String EmotCenter
protected boolean EmotCenter_Set
protected String EmotRight
protected boolean EmotRight_Set
protected String Bubble
protected boolean Bubble_Set
protected String Anim
protected boolean Anim_Set
public PlayerMessage()
public PlayerMessage(UnrealId Id, String Jmx, String Name, String Action, boolean Visible, Rotation Rotation, Location Location, Velocity Velocity, int Team, String Weapon, boolean Crouched, int Firing, String EmotLeft, String EmotCenter, String EmotRight, String Bubble, String Anim)
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.Name
- Human readable name of the player.Action
- Atomic action this bot is doing (BDI).Visible
- If the player is in the field of view of the bot.Rotation
- Which direction the player is facing in absolute terms.Location
- An absolute location of the player within the map.Velocity
- Absolute velocity of the player as a vector of movement per one
game second.Team
- What team the player is on. 255 is no team. 0-3 are red,
blue, green, gold in that order.Weapon
- Class of the weapon the player is holding. Weapon strings to
look for include: "AssaultRifle", "ShieldGun", "FlakCannon",
"BioRifle", "ShockRifle", "LinkGun", "SniperRifle",
"RocketLauncher", "Minigun", "LightingGun", "Translocator".
TODO: Look if this is all.Crouched
- True if the bot is crouched.Firing
- 0 means is not firing, 1 - firing in primary mode, 2 -
firing in secondary mode (alt firing).EmotLeft
- For UE2. Holds left emoticon of the bot, "None" means none set.EmotCenter
- For UE2. Holds center emoticon of the bot, "None" means none set.EmotRight
- For UE2. Holds right emoticon of the bot, "None" means none set.Bubble
- For UE2. Holds the bubble of the emoticon of the bot, "None" means none set.Anim
- For UE2. Current played animation of the bot.public PlayerMessage(PlayerMessage original)
original
- protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
Player
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in interface ICompositeWorldObjectUpdatedEvent
getId
in interface IPlayer
getId
in class Player
public String getJmx()
Player
public String getName()
Player
public String getAction()
Player
public boolean isVisible()
Player
public Rotation getRotation()
Player
getRotation
in interface IRotable
getRotation
in interface IPlayer
getRotation
in class Player
public Location getLocation()
Player
getLocation
in interface ILocated
getLocation
in interface IPlayer
getLocation
in class Player
public Velocity getVelocity()
Player
getVelocity
in interface ILocomotive
getVelocity
in interface IPlayer
getVelocity
in class Player
public int getTeam()
Player
public String getWeapon()
Player
public boolean isCrouched()
Player
isCrouched
in class Player
public int getFiring()
Player
public String getEmotLeft()
Player
getEmotLeft
in class Player
public String getEmotCenter()
Player
getEmotCenter
in class Player
public String getEmotRight()
Player
getEmotRight
in class Player
public String getBubble()
Player
public String getAnim()
Player
public PlayerLocal getLocal()
getLocal
in interface ICompositeWorldObject
public PlayerShared getShared()
getShared
in interface ICompositeWorldObject
public PlayerStatic getStatic()
getStatic
in interface ICompositeWorldObject
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update
in interface IWorldObjectUpdatedEvent
public ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface ICompositeWorldObjectUpdatedEvent
public ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface ICompositeWorldObjectUpdatedEvent
public IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface ICompositeWorldObjectUpdatedEvent
public String toHtmlString()
toHtmlString
in interface IPlayer
toHtmlString
in class Player
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.