dev.robocode.tankroyale.botapi.events.SkippedTurnEvent 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 the bot has skipped a turn, meaning that no intent has reached the server
* for a specific turn.
*/
public final class SkippedTurnEvent extends BotEvent {
/**
* Initializes a new instance of the SkippedTurnEvent class.
*
* @param turnNumber is the turn number which was skipped.
*/
public SkippedTurnEvent(int turnNumber) {
super(turnNumber);
}
/**
* {@inheritDoc}
*
* This event is critical.
*
* @return true
*/
@Override
public boolean isCritical() {
return true;
}
}