@@ -0,0 +1,1528 @@
+/*%0A   Programmers: Kristoffer Larson, Josue Ruiz%0A   Date: March 28, 2014%0A   %0A   Description: A Node object for the A* pathing algorithm in%0A      the PlayerBot class. It's used for the open and closed%0A      sets when traversing the graph.%0A%0A*/%0A%0Aimport SimulationFramework.*;%0Aimport java.awt.Point;%0Aimport java.awt.Color;%0A%0Apublic class Node%3CE extends Object%3E implements Comparable%3CNode%3E %7B%0A   %0A   private double g, totalDist;%0A   private Node prev;%0A   private Point p;%0A   %0A   public Node(Point p, double g, double h, Node prev) %7B%0A      this.p = p;%0A      this.g = g;%0A      totalDist = g + h;%0A      this.prev = prev;%0A   %7D//End Node() constructor%0A   %0A   public Point getPoint() %7B%0A      return p;%0A   %7D//End getPoint() method%0A   %0A   //The distance traveled.%0A   public double getDist() %7B%0A      return g;%0A   %7D//End getDist() method%0A   %0A   //The distance traveled + the heuristic distance to the end.%0A   public double getTotalDist() %7B%0A      return totalDist;%0A   %7D//End getTotalDist() method%0A   %0A   public Node getPrev() %7B%0A      return prev;%0A   %7D//End getPrev() method%0A   %0A   public int compareTo(Node n1) %7B%0A      if (this.p.equals(n1.p)) %7B%0A         return 0;%0A      %7D else %7B%0A         return -1;%0A      %7D//End if%0A%0A   %7D//End compareTo() method%0A      %0A   public boolean equals(Object obj) %7B%0A%09%09if (!(obj instanceof Node))%0A%09%09%09return false;%09%0A%09%09if (obj == this)%0A%09%09%09return true;%0A%09%09return this.p.equals(((Node) obj).p);%0A%09%7D//End equals() method%0A   %0A   public int hashCode() %7B%0A      return this.p.hashCode();%0A   %7D//End hashCode() method%0A   %0A%7D//End class%0A

Create Node.java