From 743686aa8e92e8d7f9d5dbed7f7658ed0cac17ca Mon Sep 17 00:00:00 2001 From: ericnerdo Date: Sat, 14 May 2016 20:31:55 +0200 Subject: [PATCH] Open Gates now handle boxes visually. --- cicaprojekt/GateDrawer.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cicaprojekt/GateDrawer.java b/cicaprojekt/GateDrawer.java index ff05e29..f0db101 100644 --- a/cicaprojekt/GateDrawer.java +++ b/cicaprojekt/GateDrawer.java @@ -12,8 +12,11 @@ public class GateDrawer extends AbstractDrawer { @Override public void draw() throws IOException { - if(gate.isOpen()) - changeImage("OpenGate.png"); + if(gate.isOpen()) { + if(gate.hasBox()) + changeImage("OpenGate_Box.png"); + changeImage("OpenGate.png"); + } else changeImage("Gate.png"); }