robocode
Class BattleEndedEvent
- Comparable
public class BattleEndedEvent
A BattleEndedEvent is sent to
onBattleEnded()
when the battle is ended.
You can use the information contained in this event to determine if the
battle was aborted and also get the results of the battle.
BattleEndedEvent
public BattleEndedEvent(boolean aborted,
BattleResults results)
Called by the game to create a new BattleEndedEvent.
aborted
- true
if the battle was aborted; false
otherwise.results
- the battle results
getResults
public BattleResults getResults()
Returns the battle results.
isAborted
public boolean isAborted()
Checks if this battle was aborted.
true
if the battle was aborted; false
otherwise.