|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBattleListener
The listener interface for receiving "interesting" battle events from the game, e.g. when a battle, round or turn is started or ended.
When implementing this battle listener you should implement theBattleAdaptor in order to
only implement the event handler methods you are interested in.
BattleAdaptor| Method Summary | |
|---|---|
void |
onBattleCompleted(BattleCompletedEvent event)
This method is called when the battle has completed successfully and results are available. |
void |
onBattleError(BattleErrorEvent event)
This method is called when the game has sent an error message. |
void |
onBattleFinished(BattleFinishedEvent event)
This method is called when the battle has finished. |
void |
onBattleMessage(BattleMessageEvent event)
This method is called when the game has sent a new information message. |
void |
onBattlePaused(BattlePausedEvent event)
This method is called when the battle has been paused, either by the user or the game. |
void |
onBattleResumed(BattleResumedEvent event)
This method is called when the battle has been resumed (after having been paused). |
void |
onBattleStarted(BattleStartedEvent event)
This method is called when a new battle has started. |
void |
onRoundEnded(RoundEndedEvent event)
This method is called when the current round of a battle has ended. |
void |
onRoundStarted(RoundStartedEvent event)
This method is called when a new round in a battle has started. |
void |
onTurnEnded(TurnEndedEvent event)
This method is called when the current turn in a battle round is ended. |
void |
onTurnStarted(TurnStartedEvent event)
This method is called when a new turn in a battle round has started. |
| Method Detail |
|---|
void onBattleStarted(BattleStartedEvent event)
event - the event details.BattleStartedEvent,
onBattleCompleted(BattleCompletedEvent),
onBattleFinished(BattleFinishedEvent)void onBattleFinished(BattleFinishedEvent event)
event - the event details.BattleFinishedEvent,
onBattleStarted(BattleStartedEvent),
onBattleCompleted(BattleCompletedEvent)void onBattleCompleted(BattleCompletedEvent event)
event - the event details.BattleCompletedEvent,
onBattleStarted(BattleStartedEvent),
onBattleFinished(BattleFinishedEvent)void onBattlePaused(BattlePausedEvent event)
event - the event details.BattlePausedEvent,
onBattleResumed(BattleResumedEvent)void onBattleResumed(BattleResumedEvent event)
event - the event details.BattleResumedEvent,
onBattlePaused(BattlePausedEvent)void onRoundStarted(RoundStartedEvent event)
event - the event details.RoundEndedEvent,
onRoundEnded(RoundEndedEvent)void onRoundEnded(RoundEndedEvent event)
event - the event details.RoundEndedEvent,
onRoundStarted(RoundStartedEvent)void onTurnStarted(TurnStartedEvent event)
event - the event details.TurnStartedEvent,
onTurnEnded(TurnEndedEvent)void onTurnEnded(TurnEndedEvent event)
event - the event details.TurnEndedEvent,
onTurnStarted(TurnStartedEvent)void onBattleMessage(BattleMessageEvent event)
event - the event details.BattleMessageEvent,
onBattleError(BattleErrorEvent)void onBattleError(BattleErrorEvent event)
event - the event details.BattleErrorEvent,
onBattleMessage(BattleMessageEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||