}
if (!game.containsMinefield(c)) {
continue;
}
Minefield mf = game.getMinefields(c).elementAt(0);
Image tmpImage = getScaledImage(tileManager.getMinefieldSign());
backGraph.drawImage(tmpImage, p.x + (int) (13 * scale), p.y
+ (int) (13 * scale), this);
backGraph.setColor(Color.black);
int nbrMfs = game.getNbrMinefields(c);
if (nbrMfs > 1) {
drawCenteredString(
Messages.getString("BoardView1.Multiple"), //$NON-NLS-1$
p.x, p.y + (int) (51 * scale), font_minefield,
backGraph);
} else if (nbrMfs == 1) {
switch (mf.getType()) {
case (Minefield.TYPE_CONVENTIONAL):
drawCenteredString(
Messages
.getString("BoardView1.Conventional") + mf.getDensity() + ")", //$NON-NLS-1$
p.x, p.y + (int) (51 * scale),
font_minefield, backGraph);
if(mf.isSeaBased()) {
drawCenteredString(
"Depth: " + mf.getDepth() + "", //$NON-NLS-1$ //$NON-NLS-2$
p.x, p.y + (int) (60 * scale),
font_minefield, backGraph);
}
break;
case (Minefield.TYPE_INFERNO):
drawCenteredString(
Messages
.getString("BoardView1.Inferno") + mf.getDensity() + ")", //$NON-NLS-1$ //$NON-NLS-2$
p.x, p.y + (int) (51 * scale),
font_minefield, backGraph);
break;
case (Minefield.TYPE_ACTIVE):
drawCenteredString(
Messages
.getString("BoardView1.Active") + mf.getDensity() + ")", //$NON-NLS-1$ //$NON-NLS-2$
p.x, p.y + (int) (51 * scale),
font_minefield, backGraph);
break;
case (Minefield.TYPE_COMMAND_DETONATED):
drawCenteredString(
Messages.getString("BoardView1.Command") + mf.getDensity() + ")", //$NON-NLS-1$
p.x, p.y + (int) (51 * scale),
font_minefield, backGraph);
break;
case (Minefield.TYPE_VIBRABOMB):
drawCenteredString(
Messages.getString("BoardView1.Vibrabomb") + mf.getDensity() + ")", //$NON-NLS-1$
p.x, p.y + (int) (51 * scale),
font_minefield, backGraph);
if (mf.getPlayerId() == localPlayer.getId()) {
drawCenteredString(
"(" + mf.getSetting() + ")", //$NON-NLS-1$ //$NON-NLS-2$
p.x, p.y + (int) (60 * scale),
font_minefield, backGraph);
}
break;
}