public class PlayerCompositeImpl extends Player
Player.ObjectDisappeared, Player.PlayerUpdate| Modifier and Type | Field and Description |
|---|---|
protected PlayerLocalImpl |
partLocal |
protected PlayerStaticImpl |
partStatic |
| Constructor and Description |
|---|
PlayerCompositeImpl()
Parameter-less contructor for the message.
|
PlayerCompositeImpl(PlayerCompositeImpl original)
Cloning constructor.
|
PlayerCompositeImpl(PlayerLocalImpl partLocal,
PlayerSharedImpl partShared,
PlayerStaticImpl partStatic)
Composite-impl constructor.
|
| 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() |
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() |
PlayerStatic |
getStatic() |
int |
getTeam()
What team the player is on.
|
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.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
createDisappearEvent, getSimTime, toJsonLiteralprotected PlayerStaticImpl partStatic
protected PlayerLocalImpl partLocal
public PlayerCompositeImpl()
public PlayerCompositeImpl(PlayerLocalImpl partLocal, PlayerSharedImpl partShared, PlayerStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic PlayerCompositeImpl(PlayerCompositeImpl original)
original - public void setSimTime(long SimTime)
PlayersetSimTime in class Playerpublic PlayerStatic getStatic()
public PlayerLocal getLocal()
public PlayerShared getShared()
public String getJmx()
Playerpublic String getName()
Playerpublic String getAction()
Playerpublic boolean isVisible()
Playerpublic Rotation getRotation()
PlayergetRotation in interface IRotablegetRotation in interface IPlayergetRotation in class Playerpublic Location getLocation()
PlayergetLocation in interface ILocatedgetLocation in interface IPlayergetLocation in class Playerpublic Velocity getVelocity()
PlayergetVelocity in interface ILocomotivegetVelocity in interface IPlayergetVelocity in class Playerpublic int getTeam()
Playerpublic String getWeapon()
Playerpublic boolean isCrouched()
PlayerisCrouched in class Playerpublic int getFiring()
Playerpublic String getEmotLeft()
PlayergetEmotLeft in class Playerpublic String getEmotCenter()
PlayergetEmotCenter in class Playerpublic String getEmotRight()
PlayergetEmotRight in class Playerpublic String getBubble()
Playerpublic String getAnim()
Playerpublic String toHtmlString()
toHtmlString in interface IPlayertoHtmlString in class PlayerCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.