Merge branch 'master' of https://github.com/bokrosbalint/cicaprojekt
This commit is contained in:
commit
6fb3f4fb17
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