|
||||||||||
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.udk.communication.messages.GBEvent cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.PlayerKilled
public class PlayerKilled
Asynchronous message. Some other player died - reporting his death. Additional information about DamageType - DeathString and so are exported just if we can see the dying player. Corresponding GameBots message is KIL.
Field Summary | |
---|---|
protected boolean |
BulletHit
If this damage was caused by bullet. |
protected boolean |
CausedByWorld
If this damage was caused by world - falling into lava, or falling down. |
protected String |
DamageType
A string describing what kind of damage killed the victim. |
protected String |
DeathString
String describing this type of death. |
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 dead player. |
protected String |
KilledPawn
The UT Pawn that was killed - support for vehicles. |
protected UnrealId |
Killer
Unique Id of player that killed if any (the victim might have walked off a ledge). |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected boolean |
VehicleHit
If this damage was caused by vehicle running over us. |
protected String |
WeaponName
Name of the weapon that caused this damage. |
Constructor Summary | |
---|---|
PlayerKilled()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
PlayerKilled(PlayerKilled original)
Cloning constructor. |
|
PlayerKilled(UnrealId Id,
UnrealId Killer,
String KilledPawn,
String DamageType,
String DeathString,
String WeaponName,
boolean Flaming,
boolean CausedByWorld,
boolean DirectDamage,
boolean BulletHit,
boolean VehicleHit)
Creates new instance of command PlayerKilled. |
Method Summary | |
---|---|
String |
getDamageType()
A string describing what kind of damage killed the victim. |
String |
getDeathString()
String describing this type of death. |
UnrealId |
getId()
Unique Id of the dead player. |
String |
getKilledPawn()
The UT Pawn that was killed - support for vehicles. |
UnrealId |
getKiller()
Unique Id of player that killed if any (the victim might have walked off a ledge). |
long |
getSimTime()
|
String |
getWeaponName()
Name of the weapon that caused this damage. |
boolean |
isBulletHit()
If this damage was caused by bullet. |
boolean |
isCausedByWorld()
If this damage was caused by world - falling into lava, or falling down. |
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 us. |
String |
toHtmlString()
|
String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent |
---|
getWorldEvent |
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
---|
toJsonLiteral |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROTOTYPE
protected UnrealId Id
protected UnrealId Killer
protected String KilledPawn
protected String DamageType
protected String DeathString
protected String WeaponName
protected boolean Flaming
protected boolean CausedByWorld
protected boolean DirectDamage
protected boolean BulletHit
protected boolean VehicleHit
Constructor Detail |
---|
public PlayerKilled(UnrealId Id, UnrealId Killer, String KilledPawn, String DamageType, String DeathString, String WeaponName, boolean Flaming, boolean CausedByWorld, boolean DirectDamage, boolean BulletHit, boolean VehicleHit)
Id
- Unique Id of the dead player.Killer
- Unique Id of player that killed if any (the victim might
have walked off a ledge).KilledPawn
- The UT Pawn that was killed - support for vehicles. If someone destroyes vehicle
we will get it here (Id will be none and in KilledPawn we will have destroyed vehicle).DamageType
- A string describing what kind of damage killed the victim.DeathString
- String describing this type of death.WeaponName
- Name of the weapon that caused this damage.Flaming
- If this damage is causing our bot to burn. TODOCausedByWorld
- If this damage was caused by world - falling into lava, or falling down.DirectDamage
- If the damage is direct. TODOBulletHit
- If this damage was caused by bullet.VehicleHit
- If this damage was caused by vehicle running over us.public PlayerKilled(PlayerKilled original)
public PlayerKilled()
Method Detail |
---|
public UnrealId getId()
public UnrealId getKiller()
public String getKilledPawn()
public String getDamageType()
public String getDeathString()
public String getWeaponName()
public boolean isFlaming()
public boolean isCausedByWorld()
public boolean isDirectDamage()
public boolean isBulletHit()
public boolean isVehicleHit()
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
getSimTime
in class GBEvent
public String toString()
toString
in class InfoMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |