GateDrawer now handles open-close properly
Meow.
This commit is contained in:
parent
e64e18233c
commit
cc73a671f5
@ -6,16 +6,16 @@ public class GateDrawer extends AbstractDrawer {
|
||||
Gate gate;
|
||||
|
||||
public GateDrawer(Gate g) throws IOException {
|
||||
super("ClosedGate.png");
|
||||
super("Gate.png");
|
||||
gate = g;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw() throws IOException {
|
||||
if(gate.isOpen())
|
||||
changeImage("Field.png"); //TODO picture for open gate.
|
||||
changeImage("OpenGate.png");
|
||||
else
|
||||
changeImage("ClosedGate.png");
|
||||
changeImage("Gate.png");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user