|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrobocode.control.events.BattleEvent
robocode.control.events.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.
IBattleListener,
BattleStartedEvent,
BattleCompletedEvent| Constructor Summary | |
|---|---|
BattleFinishedEvent(boolean isAborted)
Creates a new BattleFinishedEvent. |
|
| Method Summary | |
|---|---|
boolean |
isAborted()
Checks if the battle was aborted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BattleFinishedEvent(boolean isAborted)
isAborted - a flag specifying if the battle was aborted:
true if the battle was aborted; false otherwise.| Method Detail |
|---|
public boolean isAborted()
true if the battle was aborted; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||