draw() modified, Wall now shows stargates.
This commit is contained in:
parent
39a082c2aa
commit
f4f118a9ba
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user