diff --git a/cicaprojekt/WallDrawer.java b/cicaprojekt/WallDrawer.java index 7d5aabd..066bf81 100644 --- a/cicaprojekt/WallDrawer.java +++ b/cicaprojekt/WallDrawer.java @@ -13,8 +13,25 @@ public class WallDrawer extends ImagePanel implements Drawer { } @Override - public void draw() { - + public void draw() throws IOException { + switch(wall.getStargate().getName()){ + case "Blue Stargate": + changeImage("BlueStargate.png"); + break; + case "Yellow Stargate": + changeImage("YellowStargate.png"); + break; + case "Red Stargate": + changeImage("RedStargate.png"); + break; + case "GreenStargate": + changeImage("GreenStargate"); + break; + default: + changeImage("Wall.png"); + break; + } + setVisible(true); }