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:
ericnerdo 2016-04-22 10:38:18 +02:00
parent 6868baec84
commit d1d6e8b725

View File

@ -29,9 +29,10 @@ public class Gate extends cicaprojekt.Tile
public boolean isOpen() {
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gate.isOpen()");
return open;
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gate.isOpen()");
Menu.removeTab();
return open;
}
public void setOpen(boolean gateState) {