dev.robocode.tankroyale.botapi.events.DeathEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robocode-tankroyale-bot-api Show documentation
Show all versions of robocode-tankroyale-bot-api Show documentation
Robocode Tank Royale Bot API for Java
The newest version!
package dev.robocode.tankroyale.botapi.events;
/**
* Event occurring when your bot has died.
*/
@SuppressWarnings("unused")
public final class DeathEvent extends BotEvent {
/**
* Initializes a new instance of the DeathEvent class.
*
* @param turnNumber is the turn number when your bot died.
*/
public DeathEvent(int turnNumber) {
super(turnNumber);
}
/**
* {@inheritDoc}
*
* This event is critical.
*
* @return true
*/
@Override
public boolean isCritical() {
return true;
}
}