* {@inheritDoc}
*/
@Override
final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
if (robot != null) {
IBasicEvents listener = robot.getBasicEventListener();
if (listener != null && IBasicEvents2.class.isAssignableFrom(listener.getClass())) {
((IBasicEvents2) listener).onBattleEnded(this);
}
}
}