An abstract adapter class for receiving battle events by implementing the
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);
}
}