|
|||||||||
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.BotKilled
public class BotKilled
Definition of the event DIE.
Complete message documentation: Asynchronous message. This bot has died.
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 java.lang.String |
DamageType
A string describing what kind of damage killed the bot. |
protected java.lang.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 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 us. |
protected java.lang.String |
WeaponName
Name of the weapon that caused this damage. |
Constructor Summary | |
---|---|
BotKilled()
Parameter-less contructor for the message. |
|
BotKilled(BotKilled original)
Cloning constructor from the full message. |
|
BotKilled(UnrealId Killer,
java.lang.String DamageType,
java.lang.String DeathString,
java.lang.String WeaponName,
boolean Flaming,
boolean CausedByWorld,
boolean DirectDamage,
boolean BulletHit,
boolean VehicleHit)
Creates new instance of the message BotKilled. |
Method Summary | |
---|---|
java.lang.String |
getDamageType()
A string describing what kind of damage killed the bot. |
java.lang.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()
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 |
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. |
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 Killer
protected java.lang.String DamageType
protected java.lang.String DeathString
protected java.lang.String WeaponName
protected boolean Flaming
protected boolean CausedByWorld
protected boolean DirectDamage
protected boolean BulletHit
protected boolean VehicleHit
Constructor Detail |
---|
public BotKilled()
public BotKilled(UnrealId Killer, java.lang.String DamageType, java.lang.String DeathString, java.lang.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)
original
- Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public UnrealId getKiller()
public java.lang.String getDamageType()
public java.lang.String getDeathString()
public java.lang.String getWeaponName()
public boolean isFlaming()
public boolean isCausedByWorld()
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 |