public class SelfCompositeImpl extends Self
Self.SelfUpdate| Modifier and Type | Field and Description |
|---|---|
protected SelfLocalImpl |
partLocal |
protected SelfStaticImpl |
partStatic |
| Constructor and Description |
|---|
SelfCompositeImpl()
Parameter-less contructor for the message.
|
SelfCompositeImpl(SelfCompositeImpl original)
Cloning constructor.
|
SelfCompositeImpl(SelfLocalImpl partLocal,
SelfSharedImpl partShared,
SelfStaticImpl partStatic)
Composite-impl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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() |
getSimTime, toJsonLiteralprotected SelfStaticImpl partStatic
protected SelfLocalImpl partLocal
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 - public void setSimTime(long SimTime)
SelfsetSimTime in class Selfpublic SelfStatic getStatic()
public SelfLocal getLocal()
public SelfShared getShared()
public UnrealId getId()
SelfgetId in interface IWorldObjectgetId in class Selfpublic boolean isVehicle()
Selfpublic Location getLocation()
SelfgetLocation in interface ILocatedgetLocation in class Selfpublic Velocity getVelocity()
SelfgetVelocity in interface ILocomotivegetVelocity in class Selfpublic Rotation getRotation()
SelfgetRotation in interface IRotablegetRotation in class Selfpublic int getTeam()
Selfpublic String getWeapon()
Selfpublic boolean isShooting()
SelfisShooting in class Selfpublic int getHealth()
Selfpublic int getPrimaryAmmo()
SelfgetPrimaryAmmo in class Selfpublic int getSecondaryAmmo()
SelfgetSecondaryAmmo in class Selfpublic int getAdrenaline()
SelfgetAdrenaline in class Selfpublic int getArmor()
Selfpublic int getSmallArmor()
SelfgetSmallArmor in class Selfpublic boolean isAltFiring()
SelfisAltFiring in class Selfpublic boolean isCrouched()
SelfisCrouched in class Selfpublic boolean isWalking()
Selfpublic Location getFloorLocation()
SelfgetFloorLocation in class Selfpublic Location getFloorNormal()
SelfgetFloorNormal in class Selfpublic String getCombo()
Selfpublic double getUDamageTime()
SelfgetUDamageTime in class Selfpublic String getAction()
Selfpublic String getEmotLeft()
SelfgetEmotLeft in class Selfpublic String getEmotCenter()
SelfgetEmotCenter in class Selfpublic String getEmotRight()
SelfgetEmotRight in class Selfpublic String getBubble()
Selfpublic String getAnim()
Selfpublic String toHtmlString()
toHtmlString in class SelfCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.