|
|||||||||
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.SelfShared
public abstract class SelfShared
Abstract definition of the shared part of the GameBots2004 message SLF.
Complete message documentation: Synchronous message. Information about your bot's state.
Field Summary | |
---|---|
static Token |
ActionPropertyToken
|
static Token |
AdrenalinePropertyToken
|
static Token |
AltFiringPropertyToken
|
static Token |
ArmorPropertyToken
|
static Token |
BotIdPropertyToken
|
static Token |
ComboPropertyToken
|
static Token |
CrouchedPropertyToken
|
static Token |
FloorLocationPropertyToken
|
static Token |
FloorNormalPropertyToken
|
static Token |
HealthPropertyToken
|
static Token |
LocationPropertyToken
|
static Token |
NamePropertyToken
|
static Token |
PrimaryAmmoPropertyToken
|
static Token |
RotationPropertyToken
|
static Token |
SecondaryAmmoPropertyToken
|
static java.util.Set<Token> |
SharedPropertyTokens
|
static Token |
ShootingPropertyToken
|
protected long |
SimTime
|
static Token |
SmallArmorPropertyToken
|
static Token |
TeamPropertyToken
|
static Token |
UDamageTimePropertyToken
|
static Token |
VehiclePropertyToken
|
static Token |
VelocityPropertyToken
|
static Token |
WalkingPropertyToken
|
static Token |
WeaponPropertyToken
|
Constructor Summary | |
---|---|
SelfShared()
Parameter-less contructor for the message. |
Method Summary | |
---|---|
abstract SelfShared |
clone()
|
abstract java.lang.String |
getAction()
Name of the current BDI action. |
abstract int |
getAdrenaline()
How much adrenaline the bot has. |
abstract int |
getArmor()
Combined size of high armor and low armor (or small armor). |
abstract UnrealId |
getBotId()
Unique Id of the observed bot. |
abstract java.lang.String |
getCombo()
Name of the current combo (None if no combo active). |
java.lang.Class |
getCompositeClass()
|
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 the bot. |
abstract Location |
getLocation()
An absolute location of the bot. |
abstract java.lang.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()
Returns world time when the object was seen/updated for the last time. |
abstract int |
getSmallArmor()
Also refered to as a "low armor". |
abstract int |
getTeam()
What team the bot is on. |
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 java.lang.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. |
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. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject |
---|
getProperties, getProperty |
Field Detail |
---|
protected long SimTime
public static final Token BotIdPropertyToken
public static final Token NamePropertyToken
public static final Token VehiclePropertyToken
public static final Token LocationPropertyToken
public static final Token VelocityPropertyToken
public static final Token RotationPropertyToken
public static final Token TeamPropertyToken
public static final Token WeaponPropertyToken
public static final Token ShootingPropertyToken
public static final Token HealthPropertyToken
public static final Token PrimaryAmmoPropertyToken
public static final Token SecondaryAmmoPropertyToken
public static final Token AdrenalinePropertyToken
public static final Token ArmorPropertyToken
public static final Token SmallArmorPropertyToken
public static final Token AltFiringPropertyToken
public static final Token CrouchedPropertyToken
public static final Token WalkingPropertyToken
public static final Token FloorLocationPropertyToken
public static final Token FloorNormalPropertyToken
public static final Token ComboPropertyToken
public static final Token UDamageTimePropertyToken
public static final Token ActionPropertyToken
public static final java.util.Set<Token> SharedPropertyTokens
Constructor Detail |
---|
public SelfShared()
Method Detail |
---|
public long getSimTime()
ISharedWorldObject
The time suppose to be growing as the simulation carries on.
Always should be actual_timestamp >= any_prevously_recorded_timestamp,
object1.getLastSeenTime() > object2.getLastSeenTime() means that object1 last seen after object2
getSimTime
in interface IWorldObject
getSimTime
in interface ISharedWorldObject
protected void setSimTime(long SimTime)
public abstract SelfShared clone()
clone
in interface ISharedWorldObject
clone
in class java.lang.Object
public java.lang.Class getCompositeClass()
getCompositeClass
in interface ISharedWorldObject
public abstract UnrealId getId()
getId
in interface IWorldObject
public abstract UnrealId getBotId()
public abstract java.lang.String getName()
public abstract boolean isVehicle()
public abstract Location getLocation()
public abstract Velocity getVelocity()
public abstract Rotation getRotation()
public abstract int getTeam()
public abstract java.lang.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 java.lang.String getCombo()
public abstract double getUDamageTime()
public abstract java.lang.String getAction()
public java.lang.String toString()
toString
in class InfoMessage
public java.lang.String toHtmlString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |