Class DeathEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.DeathEvent
-
Constructor Summary
ConstructorDescriptionDeathEvent
(int turnNumber) Initializes a new instance of the DeathEvent class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if this event is critical, and hence should not be removed from event queue when it gets old.Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber
-
Constructor Details
-
DeathEvent
public DeathEvent(int turnNumber) Initializes a new instance of the DeathEvent class.- Parameters:
turnNumber
- is the turn number when your bot died.
-
-
Method Details
-
isCritical
public boolean isCritical()Indicates if this event is critical, and hence should not be removed from event queue when it gets old.This event is critical.
- Overrides:
isCritical
in classBotEvent
- Returns:
- true
-