|
||||||||||
| 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.Player
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerCompositeImpl
public class PlayerCompositeImpl
Composite implementation of the PLR abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
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 |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player |
|---|
Player.ObjectDisappeared, Player.PlayerUpdate |
| Field Summary | |
|---|---|
protected PlayerLocalImpl |
partLocal
|
protected PlayerStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
PlayerCompositeImpl()
Parameter-less contructor for the message. |
|
PlayerCompositeImpl(PlayerCompositeImpl original)
Cloning constructor. |
|
PlayerCompositeImpl(PlayerLocalImpl partLocal,
PlayerSharedImpl partShared,
PlayerStaticImpl partStatic)
Composite-impl constructor. |
|
| Method Summary | |
|---|---|
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). |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Unique Id of the player. |
String |
getJmx()
Exported just for control server. |
PlayerLocal |
getLocal()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
An absolute location of the player within the map. |
String |
getName()
Human readable name of the player. |
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
getRotation()
Which direction the player is facing in absolute terms. |
PlayerShared |
getShared()
|
PlayerStatic |
getStatic()
|
int |
getTeam()
What team the player is on. |
cz.cuni.amis.pogamut.base3d.worldview.object.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()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player |
|---|
createDisappearEvent, getSimTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PlayerStaticImpl partStatic
protected PlayerLocalImpl partLocal
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
public void setSimTime(long SimTime)
Player
setSimTime in class Playerpublic PlayerStatic getStatic()
public PlayerLocal getLocal()
public PlayerShared getShared()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Player
getId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectgetId in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetId in class Playerpublic String getJmx()
Player
getJmx in class Playerpublic String getName()
Player
getName in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetName in interface IPersongetName in class Playerpublic String getAction()
Player
getAction in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetAction in class Playerpublic boolean isVisible()
Player
isVisible in interface cz.cuni.amis.pogamut.base3d.worldview.object.IViewableisVisible in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayerisVisible in class Playerpublic cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
Player
getRotation in interface cz.cuni.amis.pogamut.base3d.worldview.object.IRotablegetRotation in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetRotation in class Playerpublic cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
Player
getLocation in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocatedgetLocation in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetLocation in class Playerpublic cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
Player
getVelocity in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotivegetVelocity in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetVelocity in class Playerpublic int getTeam()
Player
getTeam in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetTeam in class Playerpublic String getWeapon()
Player
getWeapon in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetWeapon in class Playerpublic boolean isCrouched()
Player
isCrouched in class Playerpublic int getFiring()
Player
getFiring in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayergetFiring in class Playerpublic String getEmotLeft()
Player
getEmotLeft in class Playerpublic String getEmotCenter()
Player
getEmotCenter in class Playerpublic String getEmotRight()
Player
getEmotRight in class Playerpublic String getBubble()
Player
getBubble in class Playerpublic String getAnim()
Player
getAnim in class Playerpublic String toString()
toString in class Playerpublic String toHtmlString()
toHtmlString in interface cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayertoHtmlString in class Player
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||