code: public void addNode (int x, int y, int dir)
      {
          _nodes.add(new PathNode(x, y, dir));
      }
docs: Add a node to the path with the specified destination point and facing direction.
  
  @param x the x-position.
  @param y the y-position.
  @param dir the facing direction.