public class BattleFinishedEvent extends BattleEvent
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.IBattleListener
,
BattleStartedEvent
,
BattleCompletedEvent
Constructor and Description |
---|
BattleFinishedEvent(boolean isAborted)
Called by the game to create a new BattleFinishedEvent.
|
public BattleFinishedEvent(boolean isAborted)
isAborted
- a flag specifying if the battle was aborted:
true
if the battle was aborted; false
otherwise.Copyright © 2021 Robocode. All Rights Reserved.