FieldDrawer.draw() modified.
This commit is contained in:
parent
c91a1d051c
commit
46ced04536
@ -13,7 +13,14 @@ public class FieldDrawer extends ImagePanel implements Drawer {
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user