/** @param direction the direction to set */ public void setDirection(NodeDirection direction) { if (direction != null && getDirection() != direction) { Node[] children = getChildren(); for (Node child : Arrays.asList(children)) { if (child != null && child.getParent() == this) { child.reset(); } } } this.direction = direction; changedDirection(); }
public void init() { reset(); setWall(false); }