code: protected void createPath (List<Point> points)
      {
          Point last = null;
          int size = points.size();
          for (int ii = 0; ii < size; ii++) {
              Point p = points.get(ii);
  
              int dir = (ii == 0) ? NORTH : DirectionUtil.getDirection(last, p);
              addNode(p.x, p.y, dir);
              last = p;
          }
      }
docs: Populate the path with the path nodes that lead the pathable from its starting position to
  the given destination coordinates following the given list of screen coordinates.