This commit is contained in:
Bokros Bálint 2016-05-07 14:21:37 +02:00
commit 6fb3f4fb17

View File

@ -0,0 +1,28 @@
package cicaprojekt;
public class FieldDrawer extends ImagePanel implements Drawer {
Field field;
public FieldDrawer(Field f) {
super("Field.png");
field = f;
setVisible(false);
}
@Override
public void draw() {
setVisible(true);
}
@Override
public int getX() {
return field.getX();
}
@Override
public int getY() {
return field.getY();
}
}