WallDrawer.java added

This commit is contained in:
ericnerdo 2016-05-07 14:29:36 +02:00
parent cc5f21ab78
commit 17d7f46d78

View File

@ -0,0 +1,29 @@
package cicaprojekt;
public class WallDrawer extends ImagePanel implements Drawer {
Wall wall;
public WallDrawer(Wall w) {
super("Wall.png");
wall = w;
setVisible(false);
}
@Override
public void draw() {
setVisible(true);
}
@Override
public int getX() {
return wall.getX();
}
@Override
public int getY() {
return wall.getY();
}
}