29 lines
454 B
Java
29 lines
454 B
Java
|
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();
|
||
|
}
|
||
|
|
||
|
}
|