draw() modified, Wall now shows stargates.

This commit is contained in:
ericnerdo 2016-05-07 15:08:13 +02:00
parent 39a082c2aa
commit f4f118a9ba

View File

@ -13,8 +13,25 @@ public class WallDrawer extends ImagePanel implements Drawer {
} }
@Override @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); setVisible(true);
} }