robocode.control.events
Class BattleFinishedEvent
public class BattleFinishedEvent
A BattleFinishedEvent is sent to
onBattleFinished()
when the battle is finished. This event is always sent as the last battle event,
both when the battle is completed successfully, terminated due to an error, or aborted by the user.
Hence, this events is well-suited for cleanup after the battle.
- Pavel Savara (original)
- Flemming N. Larsen (contributor)
boolean | isAborted() - Checks if the battle was aborted.
|
BattleFinishedEvent
public BattleFinishedEvent(boolean isAborted)
Creates a new BattleFinishedEvent.
isAborted
- a flag specifying if the battle was aborted:
true
if the battle was aborted; false
otherwise.
isAborted
public boolean isAborted()
Checks if the battle was aborted.
true
if the battle was aborted; false
otherwise.