cicaprojekt/cicaprojekt/FieldDrawer.java

29 lines
454 B
Java
Raw Normal View History

2016-05-07 12:19:56 +00:00
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();
}
}