Example #1
0
 /** @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();
 }
Example #2
0
 public void init() {
   reset();
   setWall(false);
 }