|
||||||||||
| 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.Self
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfCompositeImpl
public class SelfCompositeImpl
Composite implementation of the SLF abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
Complete message documentation: Synchronous message. Information about your bot's state.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Self |
|---|
Self.SelfUpdate |
| Field Summary | |
|---|---|
protected SelfLocalImpl |
partLocal
|
protected SelfStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Self |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
SelfCompositeImpl()
Parameter-less contructor for the message. |
|
SelfCompositeImpl(SelfCompositeImpl original)
Cloning constructor. |
|
SelfCompositeImpl(SelfLocalImpl partLocal,
SelfSharedImpl partShared,
SelfStaticImpl partStatic)
Composite-impl constructor. |
|
| Method Summary | |
|---|---|
String |
getAction()
Name of the current BDI action. |
int |
getAdrenaline()
How much adrenaline the bot has. |
String |
getAnim()
For UE2. |
int |
getArmor()
Combined size of high armor and low armor (or small armor). |
UnrealId |
getBotId()
Unique Id of this bot. |
String |
getBubble()
For UE2. |
String |
getCombo()
Name of the current combo (None if no combo active). |
String |
getEmotCenter()
For UE2. |
String |
getEmotLeft()
For UE2. |
String |
getEmotRight()
For UE2. |
Location |
getFloorLocation()
Holds current floor location under the bot. |
Location |
getFloorNormal()
Holds current floor normal under the bot. |
int |
getHealth()
How much health the bot has left. |
UnrealId |
getId()
Unique Id of this self message instance. |
SelfLocal |
getLocal()
|
Location |
getLocation()
An absolute location of the bot. |
String |
getName()
Human readable bot name. |
int |
getPrimaryAmmo()
How much ammo the bot has left for current weapon primary mode. |
Rotation |
getRotation()
Which direction the bot is facing in absolute terms. |
int |
getSecondaryAmmo()
How much ammo the bot has left for current weapon secondary mode. |
SelfShared |
getShared()
|
int |
getSmallArmor()
Also refered to as a "low armor". |
SelfStatic |
getStatic()
|
int |
getTeam()
What team the bot is on. 255 is no team. 0-3 are red, blue, green, gold in that order. |
double |
getUDamageTime()
Time when the UDamage effect expires. |
Velocity |
getVelocity()
Absolute velocity of the bot as a vector of movement per one game second. |
String |
getWeapon()
Id of the weapon we are holding. |
boolean |
isAltFiring()
If we are firing in secondary firing mode. |
boolean |
isCrouched()
If we are currently crouched. |
boolean |
isShooting()
If the bot is shooting or not. |
boolean |
isVehicle()
If we are vehicle just these attr. are sent in SLF: "Id","Vehicle""Rotation", "Location","Velocity ","Name ","Team" ,"Health" "Armor","Adrenaline", "FloorLocation", "FloorNormal". |
boolean |
isWalking()
If we are currently in walking mode. |
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.Self |
|---|
getSimTime, toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SelfStaticImpl partStatic
protected SelfLocalImpl partLocal
| Constructor Detail |
|---|
public SelfCompositeImpl()
public SelfCompositeImpl(SelfLocalImpl partLocal,
SelfSharedImpl partShared,
SelfStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic SelfCompositeImpl(SelfCompositeImpl original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
Self
setSimTime in class Selfpublic SelfStatic getStatic()
public SelfLocal getLocal()
public SelfShared getShared()
public UnrealId getId()
Self
getId in interface IWorldObjectgetId in class Selfpublic UnrealId getBotId()
Self
getBotId in class Selfpublic String getName()
Self
getName in interface IPersongetName in class Selfpublic boolean isVehicle()
Self
isVehicle in class Selfpublic Location getLocation()
Self
getLocation in interface ILocatedgetLocation in class Selfpublic Velocity getVelocity()
Self
getVelocity in interface ILocomotivegetVelocity in class Selfpublic Rotation getRotation()
Self
getRotation in interface IRotablegetRotation in class Selfpublic int getTeam()
Self
getTeam in class Selfpublic String getWeapon()
Self
getWeapon in class Selfpublic boolean isShooting()
Self
isShooting in class Selfpublic int getHealth()
Self
getHealth in class Selfpublic int getPrimaryAmmo()
Self
getPrimaryAmmo in class Selfpublic int getSecondaryAmmo()
Self
getSecondaryAmmo in class Selfpublic int getAdrenaline()
Self
getAdrenaline in class Selfpublic int getArmor()
Self
getArmor in class Selfpublic int getSmallArmor()
Self
getSmallArmor in class Selfpublic boolean isAltFiring()
Self
isAltFiring in class Selfpublic boolean isCrouched()
Self
isCrouched in class Selfpublic boolean isWalking()
Self
isWalking in class Selfpublic Location getFloorLocation()
Self
getFloorLocation in class Selfpublic Location getFloorNormal()
Self
getFloorNormal in class Selfpublic String getCombo()
Self
getCombo in class Selfpublic double getUDamageTime()
Self
getUDamageTime in class Selfpublic String getAction()
Self
getAction in class Selfpublic String getEmotLeft()
Self
getEmotLeft in class Selfpublic String getEmotCenter()
Self
getEmotCenter in class Selfpublic String getEmotRight()
Self
getEmotRight in class Selfpublic String getBubble()
Self
getBubble in class Selfpublic String getAnim()
Self
getAnim in class Selfpublic String toString()
toString in class Selfpublic String toHtmlString()
toHtmlString in class Self
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||