else
g.drawImage(emptyFieldImage, 0, 0,null);
for(int c=0; c<mineSweeper.getBlocks().length; c++)
for(int r=0; r<mineSweeper.getBlocks()[0].length; r++) {
Block block = mineSweeper.getBlocks()[c][r];
if(block.getBlockNumber()!=null){
g.setColor(block.getBlockNumber().getColor());
g.drawString(""+block.getBlockNumber().getNumber(), block.x+4, block.y+12);
}
if(block.getBlockState()!=null)
switch(block.getBlockState()){
case FLAG: g.drawImage(flagBlock, block.x, block.y, null);
break;
case BOMB: g.drawImage(bombBlock, block.x, block.y, null);
break;
case EMPTY: if(block.getBlockNumber()==null)
g.drawImage(emptyBlock, block.x, block.y, null);
}
}
}