Class DeathEvent
Event occurring when your bot has died.
Implements
Inherited Members
Namespace: Robocode.TankRoyale.BotApi.Events
Assembly: api.dll
Syntax
[PublicAPI]
public sealed class DeathEvent : BotEvent, IEvent
Constructors
| Edit this page View SourceDeathEvent(int)
Initializes a new instance of the DeathEvent class.
Declaration
[JsonConstructor]
public DeathEvent(int turnNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| int | turnNumber | Turn number when your bot died. |
Properties
| Edit this page View SourceIsCritical
Indicates if this event is critical, and hence should not be removed from event queue when it gets old. This event is critical.
Declaration
public override bool IsCritical { get; }
Property Value
| Type | Description |
|---|---|
| bool |