if (graphicsCalls == null || !robotSnapshot.isPaintEnabled()) {
continue;
}
// Save the graphics state
GraphicsState gfxState = new GraphicsState();
gfxState.save(g);
g.setClip(null);
g.setComposite(AlphaComposite.SrcAtop);
IGraphicsProxy gfxProxy = getRobotGraphics(robotIndex);
if (robotSnapshot.isSGPaintEnabled()) {
gfxProxy.processTo(g, graphicsCalls);
} else {
mirroredGraphics.bind(g, battleField.getHeight());
gfxProxy.processTo(mirroredGraphics, graphicsCalls);
mirroredGraphics.release();
}
// Restore the graphics state
gfxState.restore(g);
robotIndex++;
}
}