|
|||||||||
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 cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.SelfCompositeImpl
public class SelfCompositeImpl
Composite implementation of the SLF abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
Complete message documentation: Synchronous message. Information about your bot's state.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Self |
---|
Self.SelfUpdate |
Field Summary | |
---|---|
protected SelfLocalImpl |
partLocal
|
protected SelfStaticImpl |
partStatic
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Self |
---|
PROTOTYPE, SimTime |
Constructor Summary | |
---|---|
SelfCompositeImpl()
Parameter-less contructor for the message. |
|
SelfCompositeImpl(SelfCompositeImpl original)
Cloning constructor. |
|
SelfCompositeImpl(SelfLocalImpl partLocal,
SelfSharedImpl partShared,
SelfStaticImpl partStatic)
Composite-impl constructor. |
Method Summary | |
---|---|
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. |
SelfLocal |
getLocal()
|
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. |
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. |
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.Self |
---|
getSimTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SelfStaticImpl partStatic
protected SelfLocalImpl partLocal
Constructor Detail |
---|
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
- Method Detail |
---|
public void setSimTime(long SimTime)
Self
setSimTime
in class Self
public SelfStatic getStatic()
public SelfLocal getLocal()
public SelfShared getShared()
public UnrealId getId()
Self
getId
in interface IWorldObject
getId
in class Self
public UnrealId getBotId()
Self
getBotId
in class Self
public java.lang.String getName()
Self
getName
in interface IPerson
getName
in class Self
public boolean isVehicle()
Self
isVehicle
in class Self
public Location getLocation()
Self
getLocation
in interface ILocated
getLocation
in class Self
public Velocity getVelocity()
Self
getVelocity
in interface ILocomotive
getVelocity
in class Self
public Rotation getRotation()
Self
getRotation
in interface IRotable
getRotation
in class Self
public int getTeam()
Self
getTeam
in class Self
public java.lang.String getWeapon()
Self
getWeapon
in class Self
public boolean isShooting()
Self
isShooting
in class Self
public int getHealth()
Self
getHealth
in class Self
public int getPrimaryAmmo()
Self
getPrimaryAmmo
in class Self
public int getSecondaryAmmo()
Self
getSecondaryAmmo
in class Self
public int getAdrenaline()
Self
getAdrenaline
in class Self
public int getArmor()
Self
getArmor
in class Self
public int getSmallArmor()
Self
getSmallArmor
in class Self
public boolean isAltFiring()
Self
isAltFiring
in class Self
public boolean isCrouched()
Self
isCrouched
in class Self
public boolean isWalking()
Self
isWalking
in class Self
public Location getFloorLocation()
Self
getFloorLocation
in class Self
public Location getFloorNormal()
Self
getFloorNormal
in class Self
public java.lang.String getCombo()
Self
getCombo
in class Self
public double getUDamageTime()
Self
getUDamageTime
in class Self
public java.lang.String getAction()
Self
getAction
in class Self
public java.lang.String toString()
toString
in class Self
public java.lang.String toHtmlString()
toHtmlString
in class Self
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |