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:
parent
6868baec84
commit
d1d6e8b725
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user