dev.robocode.tankroyale.botapi.events.WonRoundEvent 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 a bot has won the round.
*/
public final class WonRoundEvent extends BotEvent {
/**
* Initializes a new instance of the WonRoundEvent class.
*
* @param turnNumber is the turn number when the bot won the round.
*/
public WonRoundEvent(int turnNumber) {
super(turnNumber);
}
/**
* {@inheritDoc}
*
* This event is critical.
*
* @return true
*/
@Override
public boolean isCritical() {
return true;
}
}