|
||||||||||
| 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.SelfLocal
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfMessage.SelfLocalMessage
public class SelfMessage.SelfLocalMessage
Implementation of the local part of the GameBots2004 message SLF, used to facade SLFMessage.
Complete message documentation: Synchronous message. Information about your bot's state.
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfLocal |
|---|
SimTime |
| Constructor Summary | |
|---|---|
SelfMessage.SelfLocalMessage()
|
|
| Method Summary | |
|---|---|
SelfMessage.SelfLocalMessage |
clone()
|
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. |
SelfMessage.SelfLocalMessage |
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. |
ISharedWorldObject |
getShared()
|
int |
getSmallArmor()
Also refered to as a "low armor". |
IStaticWorldObject |
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. |
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfLocal |
|---|
getCompositeClass, getSimTime, setSimTime |
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelfMessage.SelfLocalMessage()
| Method Detail |
|---|
public SelfMessage.SelfLocalMessage clone()
clone in interface ILocalWorldObjectclone in class SelfLocalpublic SelfMessage.SelfLocalMessage getLocal()
getLocal in class SelfLocalpublic ISharedWorldObject getShared()
getShared in class SelfLocalpublic IStaticWorldObject getStatic()
getStatic in class SelfLocalpublic UnrealId getId()
getId in interface IWorldObjectgetId in class SelfLocalpublic UnrealId getBotId()
getBotId in class SelfLocalpublic String getName()
getName in class SelfLocalpublic boolean isVehicle()
isVehicle in class SelfLocalpublic Location getLocation()
getLocation in class SelfLocalpublic Velocity getVelocity()
getVelocity in class SelfLocalpublic Rotation getRotation()
getRotation in class SelfLocalpublic int getTeam()
getTeam in class SelfLocalpublic String getWeapon()
getWeapon in class SelfLocalpublic boolean isShooting()
isShooting in class SelfLocalpublic int getHealth()
getHealth in class SelfLocalpublic int getPrimaryAmmo()
getPrimaryAmmo in class SelfLocalpublic int getSecondaryAmmo()
getSecondaryAmmo in class SelfLocalpublic int getAdrenaline()
getAdrenaline in class SelfLocalpublic int getArmor()
getArmor in class SelfLocalpublic int getSmallArmor()
getSmallArmor in class SelfLocalpublic boolean isAltFiring()
isAltFiring in class SelfLocalpublic boolean isCrouched()
isCrouched in class SelfLocalpublic boolean isWalking()
isWalking in class SelfLocalpublic Location getFloorLocation()
getFloorLocation in class SelfLocalpublic Location getFloorNormal()
getFloorNormal in class SelfLocalpublic String getCombo()
getCombo in class SelfLocalpublic double getUDamageTime()
getUDamageTime in class SelfLocalpublic String getAction()
getAction in class SelfLocalpublic String getEmotLeft()
getEmotLeft in class SelfLocalpublic String getEmotCenter()
getEmotCenter in class SelfLocalpublic String getEmotRight()
getEmotRight in class SelfLocalpublic String getBubble()
getBubble in class SelfLocalpublic String getAnim()
getAnim in class SelfLocalpublic String toString()
toString in class SelfLocalpublic String toHtmlString()
toHtmlString in class SelfLocal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||