Class BotDeathEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.BotDeathEvent
-
Constructor Summary
ConstructorDescriptionBotDeathEvent
(int turnNumber, int victimId) Initializes a new instance of the BotDeathEvent class. -
Method Summary
Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
Constructor Details
-
BotDeathEvent
public BotDeathEvent(int turnNumber, int victimId) Initializes a new instance of the BotDeathEvent class.- Parameters:
turnNumber
- is the turn number when the bot died.victimId
- is the id of the bot that has died.
-
-
Method Details
-
getVictimId
public int getVictimId()Returns the id of the bot that has died.- Returns:
- The id of the bot that has died.
-