|
||||||||||
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.Self
public abstract class Self
Abstract definition of the GameBots2004 message SLF.
Complete message documentation: Synchronous message. Information about your bot's state.
Nested Class Summary | |
---|---|
static class |
Self.SelfUpdate
|
Field Summary | |
---|---|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected long |
SimTime
|
Constructor Summary | |
---|---|
Self()
Parameter-less contructor for the message. |
Method Summary | |
---|---|
abstract String |
getAction()
Name of the current BDI action. |
abstract int |
getAdrenaline()
How much adrenaline the bot has. |
abstract String |
getAnim()
For UE2. |
abstract int |
getArmor()
Combined size of high armor and low armor (or small armor). |
abstract UnrealId |
getBotId()
Unique Id of this bot. |
abstract String |
getBubble()
For UE2. |
abstract String |
getCombo()
Name of the current combo (None if no combo active). |
abstract String |
getEmotCenter()
For UE2. |
abstract String |
getEmotLeft()
For UE2. |
abstract String |
getEmotRight()
For UE2. |
abstract Location |
getFloorLocation()
Holds current floor location under the bot. |
abstract Location |
getFloorNormal()
Holds current floor normal under the bot. |
abstract int |
getHealth()
How much health the bot has left. |
abstract UnrealId |
getId()
Unique Id of this self message instance. |
abstract Location |
getLocation()
An absolute location of the bot. |
abstract String |
getName()
Human readable bot name. |
abstract int |
getPrimaryAmmo()
How much ammo the bot has left for current weapon primary mode. |
abstract Rotation |
getRotation()
Which direction the bot is facing in absolute terms. |
abstract int |
getSecondaryAmmo()
How much ammo the bot has left for current weapon secondary mode. |
long |
getSimTime()
Simulation time in MILLI SECONDS !!! |
abstract int |
getSmallArmor()
Also refered to as a "low armor". |
abstract int |
getTeam()
What team the bot is on. 255 is no team. 0-3 are red, blue, green, gold in that order. |
abstract double |
getUDamageTime()
Time when the UDamage effect expires. |
abstract Velocity |
getVelocity()
Absolute velocity of the bot as a vector of movement per one game second. |
abstract String |
getWeapon()
Id of the weapon we are holding. |
abstract boolean |
isAltFiring()
If we are firing in secondary firing mode. |
abstract boolean |
isCrouched()
If we are currently crouched. |
abstract boolean |
isShooting()
If the bot is shooting or not. |
abstract 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". |
abstract boolean |
isWalking()
If we are currently in walking mode. |
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
String |
toHtmlString()
|
String |
toJsonLiteral()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject |
---|
getLocal, getShared, getStatic |
Field Detail |
---|
public static final String PROTOTYPE
protected long SimTime
Constructor Detail |
---|
public Self()
Method Detail |
---|
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
getSimTime
in interface IWorldObject
protected void setSimTime(long SimTime)
public abstract UnrealId getId()
getId
in interface IWorldObject
public abstract UnrealId getBotId()
public abstract String getName()
getName
in interface IPerson
public abstract boolean isVehicle()
public abstract Location getLocation()
getLocation
in interface ILocated
public abstract Velocity getVelocity()
getVelocity
in interface ILocomotive
public abstract Rotation getRotation()
getRotation
in interface IRotable
public abstract int getTeam()
public abstract String getWeapon()
public abstract boolean isShooting()
public abstract int getHealth()
public abstract int getPrimaryAmmo()
public abstract int getSecondaryAmmo()
public abstract int getAdrenaline()
public abstract int getArmor()
public abstract int getSmallArmor()
public abstract boolean isAltFiring()
public abstract boolean isCrouched()
public abstract boolean isWalking()
public abstract Location getFloorLocation()
public abstract Location getFloorNormal()
public abstract String getCombo()
public abstract double getUDamageTime()
public abstract String getAction()
public abstract String getEmotLeft()
public abstract String getEmotCenter()
public abstract String getEmotRight()
public abstract String getBubble()
public abstract String getAnim()
public String toString()
toString
in class InfoMessage
public String toHtmlString()
public String toJsonLiteral()
toJsonLiteral
in class InfoMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |