|
|||||||||
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.PlayerShared cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerSharedImpl
public class PlayerSharedImpl
Implementation of the shared 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 |
PlayerSharedImpl.PlayerSharedUpdate
|
Field Summary | |
---|---|
protected UnrealId |
Id
Unique Id of the player. |
protected StringProperty |
myAction
Atomic action this bot is doing (BDI). |
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 java.util.HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerShared |
---|
ActionPropertyToken, FiringPropertyToken, LocationPropertyToken, NamePropertyToken, RotationPropertyToken, SharedPropertyTokens, SimTime, TeamPropertyToken, VelocityPropertyToken, WeaponPropertyToken |
Constructor Summary | |
---|---|
PlayerSharedImpl(PlayerSharedImpl source)
|
|
PlayerSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
|
Method Summary | |
---|---|
PlayerSharedImpl |
clone()
|
java.lang.String |
getAction()
Atomic action this bot is doing (BDI). |
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. |
java.lang.String |
getName()
Human readable name of the player. |
java.util.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. |
java.lang.String |
getWeapon()
Class of the weapon the player is holding. |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerShared |
---|
getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.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 IntProperty myFiring
Constructor Detail |
---|
public PlayerSharedImpl(PlayerSharedImpl source)
public PlayerSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
Method Detail |
---|
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 java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class PlayerShared
public java.lang.String getName()
getName
in class PlayerShared
public java.lang.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 java.lang.String getWeapon()
getWeapon
in class PlayerShared
public int getFiring()
getFiring
in class PlayerShared
public java.lang.String toString()
toString
in class PlayerShared
public java.lang.String toHtmlString()
toHtmlString
in class PlayerShared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |