Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
robocode.control.events.BattleAdaptor
IBattleListener
.
The methods in this class are empty. This class exists as convenience for creating listener objects.
This is handy class to use when implementing the IBattleListener.
It saves you from implementing empty handlers for battle events you are not interested in handling.
Example:
private class BattleObserver extends BattleAdaptor { boolean isReplay; public void onBattleStarted(BattleStartedEvent event) { isReplay = event.isReplay(); } public void onBattleCompleted(BattleCompletedEvent event) { if (!isReplay) { printResultsData(event); } }
IBattleListener
Constructor Summary | |
|
Method Summary | |
void | |
void |
|
void | |
void | |
void |
|
void | |
void | |
void |
|
void |
|
void |
|
void |
|
public void onBattleCompleted(BattleCompletedEvent event)
- Specified by:
- onBattleCompleted in interface IBattleListener
public void onBattleError(BattleErrorEvent event)
- Specified by:
- onBattleError in interface IBattleListener
public void onBattleFinished(BattleFinishedEvent event)
- Specified by:
- onBattleFinished in interface IBattleListener
public void onBattleMessage(BattleMessageEvent event)
- Specified by:
- onBattleMessage in interface IBattleListener
public void onBattlePaused(BattlePausedEvent event)
- Specified by:
- onBattlePaused in interface IBattleListener
public void onBattleResumed(BattleResumedEvent event)
- Specified by:
- onBattleResumed in interface IBattleListener
public void onBattleStarted(BattleStartedEvent event)
- Specified by:
- onBattleStarted in interface IBattleListener
public void onRoundEnded(RoundEndedEvent event)
- Specified by:
- onRoundEnded in interface IBattleListener
public void onRoundStarted(RoundStartedEvent event)
- Specified by:
- onRoundStarted in interface IBattleListener
public void onTurnEnded(TurnEndedEvent event)
- Specified by:
- onTurnEnded in interface IBattleListener
public void onTurnStarted(TurnStartedEvent event)
- Specified by:
- onTurnStarted in interface IBattleListener