Boolean isOpen fixed
"return open" was in the middle of the code, I moved it to the end of it. Methods onEntry, onExit are still unfinished.
This commit is contained in:
		@@ -29,9 +29,10 @@ public class Gate extends cicaprojekt.Tile
 | 
				
			|||||||
	public boolean isOpen() {
 | 
						public boolean isOpen() {
 | 
				
			||||||
	    Menu.addTab();
 | 
						    Menu.addTab();
 | 
				
			||||||
        System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gate.isOpen()");
 | 
					        System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gate.isOpen()");
 | 
				
			||||||
        return open;
 | 
					 | 
				
			||||||
        System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gate.isOpen()");
 | 
					        System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gate.isOpen()");
 | 
				
			||||||
        Menu.removeTab();
 | 
					        Menu.removeTab();
 | 
				
			||||||
 | 
					        return open;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public void setOpen(boolean gateState) {
 | 
						public void setOpen(boolean gateState) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user