//purely visual scene that shows the lines that connect the nodes.
//made as its own scene so that it can be added to the game before the other
//nodes, so it can be drawn in the first layer.
public class NodeWeb extends Scene {
  
  //array of coordinates for lines
  ArrayList<int[]> lines = new ArrayList<int[]>();
  
  private String name = "NodeWeb";
  
  public NodeWeb() {
  }
  
  public void process() {
    for (int[] l : lines) line(l[0], l[1], l[2], l[3]);
  }
  
  //adds a line to the list based on 4 coordinates
  public void addLine(int x, int y, int w, int h) {
    lines.add(new int[]{x, y, w, h});
  }
  
}
