FieldDrawer.java added
This commit is contained in:
parent
9e93cf8928
commit
0b5ef542df
28
cicaprojekt/FieldDrawer.java
Normal file
28
cicaprojekt/FieldDrawer.java
Normal 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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user