public class BotKilled extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
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 bot.
|
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 |
Killer
Unique Id of player that killed our bot if any (may 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 and Description |
|---|
BotKilled()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
BotKilled(BotKilled original)
Cloning constructor.
|
BotKilled(UnrealId Killer,
String DamageType,
String DeathString,
String WeaponName,
boolean Flaming,
boolean CausedByWorld,
boolean DirectDamage,
boolean BulletHit,
boolean VehicleHit)
Creates new instance of command BotKilled.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDamageType()
A string describing what kind of damage killed the bot.
|
String |
getDeathString()
String describing this type of death.
|
UnrealId |
getKiller()
Unique Id of player that killed our bot if any (may 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() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected UnrealId Killer
protected String DamageType
protected String DeathString
protected String WeaponName
protected boolean Flaming
protected boolean CausedByWorld
protected boolean DirectDamage
protected boolean BulletHit
protected boolean VehicleHit
public BotKilled(UnrealId Killer, String DamageType, String DeathString, String WeaponName, boolean Flaming, boolean CausedByWorld, boolean DirectDamage, boolean BulletHit, boolean VehicleHit)
Killer - Unique Id of player that killed our bot if any (may have
walked off a ledge).DamageType - A string describing what kind of damage killed the bot.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 BotKilled(BotKilled original)
public BotKilled()
public UnrealId getKiller()
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 IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.