|
|||||||||
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 cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfSharedImpl
public class SelfSharedImpl
Implementation of the shared part of the GameBots2004 message SLF.
Complete message documentation: Synchronous message. Information about your bot's state.
Nested Class Summary | |
---|---|
static class |
SelfSharedImpl.SelfSharedUpdate
|
Field Summary | |
---|---|
protected UnrealId |
Id
Unique Id of the bot. |
protected StringProperty |
myAction
Name of the current BDI action. |
protected IntProperty |
myAdrenaline
How much adrenaline the bot has. |
protected BooleanProperty |
myAltFiring
If we are firing in secondary firing mode. |
protected IntProperty |
myArmor
Combined size of high armor and low armor (or small armor). |
protected UnrealIdProperty |
myBotId
Unique Id of the observed bot. |
protected StringProperty |
myCombo
Name of the current combo (None if no combo active). |
protected BooleanProperty |
myCrouched
If we are currently crouched. |
protected LocationProperty |
myFloorLocation
Holds current floor location under the bot. |
protected LocationProperty |
myFloorNormal
Holds current floor normal under the bot. |
protected IntProperty |
myHealth
How much health the bot has left. |
protected LocationProperty |
myLocation
An absolute location of the bot. |
protected StringProperty |
myName
Human readable bot name. |
protected IntProperty |
myPrimaryAmmo
How much ammo the bot has left for current weapon primary mode. |
protected RotationProperty |
myRotation
Which direction the bot is facing in absolute terms. |
protected IntProperty |
mySecondaryAmmo
How much ammo the bot has left for current weapon secondary mode. |
protected BooleanProperty |
myShooting
If the bot is shooting or not. |
protected IntProperty |
mySmallArmor
Also refered to as a "low armor". |
protected IntProperty |
myTeam
What team the bot is on. |
protected DoubleProperty |
myUDamageTime
Time when the UDamage effect expires. |
protected BooleanProperty |
myVehicle
If we are vehicle just these attr. |
protected VelocityProperty |
myVelocity
Absolute velocity of the bot as a vector of movement per one game second. |
protected BooleanProperty |
myWalking
If we are currently in walking mode. |
protected StringProperty |
myWeapon
Id of the weapon we are holding. |
protected java.util.HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfShared |
---|
ActionPropertyToken, AdrenalinePropertyToken, AltFiringPropertyToken, ArmorPropertyToken, BotIdPropertyToken, ComboPropertyToken, CrouchedPropertyToken, FloorLocationPropertyToken, FloorNormalPropertyToken, HealthPropertyToken, LocationPropertyToken, NamePropertyToken, PrimaryAmmoPropertyToken, RotationPropertyToken, SecondaryAmmoPropertyToken, SharedPropertyTokens, ShootingPropertyToken, SimTime, SmallArmorPropertyToken, TeamPropertyToken, UDamageTimePropertyToken, VehiclePropertyToken, VelocityPropertyToken, WalkingPropertyToken, WeaponPropertyToken |
Constructor Summary | |
---|---|
SelfSharedImpl(SelfSharedImpl source)
|
|
SelfSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
|
Method Summary | |
---|---|
SelfSharedImpl |
clone()
|
java.lang.String |
getAction()
Name of the current BDI action. |
int |
getAdrenaline()
How much adrenaline the bot has. |
int |
getArmor()
Combined size of high armor and low armor (or small armor). |
UnrealId |
getBotId()
Unique Id of the observed bot. |
java.lang.String |
getCombo()
Name of the current combo (None if no combo active). |
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 the bot. |
Location |
getLocation()
An absolute location of the bot. |
java.lang.String |
getName()
Human readable bot name. |
int |
getPrimaryAmmo()
How much ammo the bot has left for current weapon primary mode. |
java.util.Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
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. |
int |
getSmallArmor()
Also refered to as a "low armor". |
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. |
java.lang.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. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfShared |
---|
getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected UnrealIdProperty myBotId
protected StringProperty myName
protected BooleanProperty myVehicle
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected RotationProperty myRotation
protected IntProperty myTeam
protected StringProperty myWeapon
protected BooleanProperty myShooting
protected IntProperty myHealth
protected IntProperty myPrimaryAmmo
protected IntProperty mySecondaryAmmo
protected IntProperty myAdrenaline
protected IntProperty myArmor
protected IntProperty mySmallArmor
protected BooleanProperty myAltFiring
protected BooleanProperty myCrouched
protected BooleanProperty myWalking
protected LocationProperty myFloorLocation
protected LocationProperty myFloorNormal
protected StringProperty myCombo
protected DoubleProperty myUDamageTime
protected StringProperty myAction
Constructor Detail |
---|
public SelfSharedImpl(SelfSharedImpl source)
public SelfSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
Method Detail |
---|
public void setSimTime(long SimTime)
SelfShared
setSimTime
in class SelfShared
public SelfSharedImpl clone()
clone
in interface ISharedWorldObject
clone
in class SelfShared
public ISharedProperty getProperty(PropertyId id)
public java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class SelfShared
public UnrealId getBotId()
getBotId
in class SelfShared
public java.lang.String getName()
getName
in class SelfShared
public boolean isVehicle()
isVehicle
in class SelfShared
public Location getLocation()
getLocation
in class SelfShared
public Velocity getVelocity()
getVelocity
in class SelfShared
public Rotation getRotation()
getRotation
in class SelfShared
public int getTeam()
getTeam
in class SelfShared
public java.lang.String getWeapon()
getWeapon
in class SelfShared
public boolean isShooting()
isShooting
in class SelfShared
public int getHealth()
getHealth
in class SelfShared
public int getPrimaryAmmo()
getPrimaryAmmo
in class SelfShared
public int getSecondaryAmmo()
getSecondaryAmmo
in class SelfShared
public int getAdrenaline()
getAdrenaline
in class SelfShared
public int getArmor()
getArmor
in class SelfShared
public int getSmallArmor()
getSmallArmor
in class SelfShared
public boolean isAltFiring()
isAltFiring
in class SelfShared
public boolean isCrouched()
isCrouched
in class SelfShared
public boolean isWalking()
isWalking
in class SelfShared
public Location getFloorLocation()
getFloorLocation
in class SelfShared
public Location getFloorNormal()
getFloorNormal
in class SelfShared
public java.lang.String getCombo()
getCombo
in class SelfShared
public double getUDamageTime()
getUDamageTime
in class SelfShared
public java.lang.String getAction()
getAction
in class SelfShared
public java.lang.String toString()
toString
in class SelfShared
public java.lang.String toHtmlString()
toHtmlString
in class SelfShared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |