FieldDrawer.draw() modified.

This commit is contained in:
ericnerdo 2016-05-07 15:47:43 +02:00
parent c91a1d051c
commit 46ced04536

View File

@ -13,7 +13,14 @@ public class FieldDrawer extends ImagePanel implements Drawer {
} }
@Override @Override
public void draw() { public void draw() throws IOException {
if(field.hasBox())
changeImage("Box.png");
else if(field.hasZPM())
changeImage("ZPM.png");
else
changeImage("Field.png");
setVisible(true); setVisible(true);
} }