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