|
|||||||||
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.PlayerDamaged
public class PlayerDamaged
Definition of the event HIT.
Complete message documentation: Asynchronous message. Bot hurt another player. Hit them with a shot.
Field Summary | |
---|---|
protected boolean |
BulletHit
If this damage was caused by bullet. |
protected int |
Damage
Amount of damage done. |
protected java.lang.String |
DamageType
A string describing what kind of damage. |
protected boolean |
DirectDamage
If the damage is direct. |
protected boolean |
Flaming
If this damage is causing our bot to burn. |
protected UnrealId |
Id
Unique Id of the player hit. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected long |
SimTime
|
protected boolean |
VehicleHit
If this damage was caused by vehicle running over. |
protected java.lang.String |
WeaponName
Name of the weapon that caused this damage. |
Constructor Summary | |
---|---|
PlayerDamaged()
Parameter-less contructor for the message. |
|
PlayerDamaged(PlayerDamaged original)
Cloning constructor from the full message. |
|
PlayerDamaged(UnrealId Id,
int Damage,
java.lang.String DamageType,
java.lang.String WeaponName,
boolean Flaming,
boolean DirectDamage,
boolean BulletHit,
boolean VehicleHit)
Creates new instance of the message PlayerDamaged. |
Method Summary | |
---|---|
int |
getDamage()
Amount of damage done. |
java.lang.String |
getDamageType()
A string describing what kind of damage. |
UnrealId |
getId()
Unique Id of the player hit. |
long |
getSimTime()
Returns the simulation time when the event has occurred. |
java.lang.String |
getWeaponName()
Name of the weapon that caused this damage. |
boolean |
isBulletHit()
If this damage was caused by bullet. |
boolean |
isDirectDamage()
If the damage is direct. |
boolean |
isFlaming()
If this damage is causing our bot to burn. |
boolean |
isVehicleHit()
If this damage was caused by vehicle running over. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected long SimTime
protected UnrealId Id
protected int Damage
protected java.lang.String DamageType
protected java.lang.String WeaponName
protected boolean Flaming
protected boolean DirectDamage
protected boolean BulletHit
protected boolean VehicleHit
Constructor Detail |
---|
public PlayerDamaged()
public PlayerDamaged(UnrealId Id, int Damage, java.lang.String DamageType, java.lang.String WeaponName, boolean Flaming, boolean DirectDamage, boolean BulletHit, boolean VehicleHit)
Id
- Unique Id of the player hit.Damage
- Amount of damage done.DamageType
- A string describing what kind of damage.WeaponName
- Name of the weapon that caused this damage.Flaming
- If this damage is causing our bot to burn. TODODirectDamage
- If the damage is direct. TODOBulletHit
- If this damage was caused by bullet.VehicleHit
- If this damage was caused by vehicle running over.public PlayerDamaged(PlayerDamaged original)
original
- Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public UnrealId getId()
public int getDamage()
public java.lang.String getDamageType()
public java.lang.String getWeaponName()
public boolean isFlaming()
public boolean isDirectDamage()
public boolean isBulletHit()
public boolean isVehicleHit()
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 |