public class PlayerSharedImpl extends PlayerShared
Modifier and Type | Class and Description |
---|---|
static class |
PlayerSharedImpl.PlayerSharedUpdate |
Modifier and Type | Field and Description |
---|---|
protected UnrealId |
Id
Unique Id of the player.
|
protected StringProperty |
myAction
Atomic action this bot is doing (BDI).
|
protected StringProperty |
myAnim
For UE2.
|
protected StringProperty |
myBubble
For UE2.
|
protected BooleanProperty |
myCrouched
True if the bot is crouched.
|
protected StringProperty |
myEmotCenter
For UE2.
|
protected StringProperty |
myEmotLeft
For UE2.
|
protected StringProperty |
myEmotRight
For UE2.
|
protected IntProperty |
myFiring
0 means is not firing, 1 - firing in primary mode, 2 -
firing in secondary mode (alt firing).
|
protected LocationProperty |
myLocation
An absolute location of the player within the map.
|
protected StringProperty |
myName
Human readable name of the player.
|
protected RotationProperty |
myRotation
Which direction the player is facing in absolute terms.
|
protected IntProperty |
myTeam
What team the player is on.
|
protected VelocityProperty |
myVelocity
Absolute velocity of the player as a vector of movement per one
game second.
|
protected StringProperty |
myWeapon
Class of the weapon the player is holding.
|
protected HashMap<PropertyId,ISharedProperty> |
propertyMap |
ActionPropertyToken, AnimPropertyToken, BubblePropertyToken, CrouchedPropertyToken, EmotCenterPropertyToken, EmotLeftPropertyToken, EmotRightPropertyToken, FiringPropertyToken, LocationPropertyToken, NamePropertyToken, RotationPropertyToken, SharedPropertyTokens, SimTime, TeamPropertyToken, VelocityPropertyToken, WeaponPropertyToken
Constructor and Description |
---|
PlayerSharedImpl(PlayerSharedImpl source) |
PlayerSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties) |
Modifier and Type | Method and Description |
---|---|
PlayerSharedImpl |
clone() |
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.
|
Location |
getLocation()
An absolute location of the player within the map.
|
String |
getName()
Human readable name of the player.
|
Map<PropertyId,ISharedProperty> |
getProperties() |
ISharedProperty |
getProperty(PropertyId id) |
Rotation |
getRotation()
Which direction the player is facing in absolute terms.
|
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.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
getCompositeClass, getSimTime
toJsonLiteral
protected HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected StringProperty myName
protected StringProperty myAction
protected RotationProperty myRotation
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected IntProperty myTeam
protected StringProperty myWeapon
protected BooleanProperty myCrouched
protected IntProperty myFiring
protected StringProperty myEmotLeft
protected StringProperty myEmotCenter
protected StringProperty myEmotRight
protected StringProperty myBubble
protected StringProperty myAnim
public PlayerSharedImpl(PlayerSharedImpl source)
public PlayerSharedImpl(WorldObjectId objectId, Collection<ISharedProperty> properties)
public void setSimTime(long SimTime)
PlayerShared
setSimTime
in class PlayerShared
public PlayerSharedImpl clone()
clone
in interface ISharedWorldObject
clone
in class PlayerShared
public ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class PlayerShared
public String getName()
getName
in class PlayerShared
public String getAction()
getAction
in class PlayerShared
public Rotation getRotation()
getRotation
in class PlayerShared
public Location getLocation()
getLocation
in class PlayerShared
public Velocity getVelocity()
getVelocity
in class PlayerShared
public int getTeam()
getTeam
in class PlayerShared
public String getWeapon()
getWeapon
in class PlayerShared
public boolean isCrouched()
isCrouched
in class PlayerShared
public int getFiring()
getFiring
in class PlayerShared
public String getEmotLeft()
getEmotLeft
in class PlayerShared
public String getEmotCenter()
getEmotCenter
in class PlayerShared
public String getEmotRight()
getEmotRight
in class PlayerShared
public String getBubble()
getBubble
in class PlayerShared
public String getAnim()
getAnim
in class PlayerShared
public String toString()
toString
in class PlayerShared
public String toHtmlString()
toHtmlString
in class PlayerShared
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.