GateDrawer now handles open-close properly
Meow.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user