WallDrawer.java added
This commit is contained in:
parent
cc5f21ab78
commit
17d7f46d78
29
cicaprojekt/WallDrawer.java
Normal file
29
cicaprojekt/WallDrawer.java
Normal 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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user