uk.ac.ed.inf.sdp2012.group7.strategy.astar
Class Node
java.lang.Object
java.awt.geom.Point2D
java.awt.Point
uk.ac.ed.inf.sdp2012.group7.strategy.astar.Node
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Node>
public class Node
- extends java.awt.Point
- implements java.lang.Comparable<Node>
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.awt.geom.Point2D |
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
Fields inherited from class java.awt.Point |
x, y |
Constructor Summary |
Node(int x,
int y)
|
Node(java.awt.Point point)
|
Node(java.awt.Point point,
int obstacleCost)
|
Methods inherited from class java.awt.Point |
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate |
Methods inherited from class java.awt.geom.Point2D |
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, setLocation |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Node
public Node(java.awt.Point point,
int obstacleCost)
Node
public Node(java.awt.Point point)
Node
public Node(int x,
int y)
compareTo
public int compareTo(Node o)
- Specified by:
compareTo
in interface java.lang.Comparable<Node>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.awt.geom.Point2D
getfCost
public double getfCost()
setfCost
public void setfCost()
getgCost
public double getgCost()
setgCost
public void setgCost(double gCost)
gethCost
public double gethCost()
sethCost
public void sethCost(double hcost)
isOpposition
public boolean isOpposition()
setOpposition
public void setOpposition(boolean opposition)
isBall
public boolean isBall()
setBall
public void setBall(boolean ball)
isTarget
public boolean isTarget()
setTarget
public void setTarget(boolean isTarget)
getObstacleCost
public double getObstacleCost()
setObstacleCost
public void setObstacleCost(double obstacleCost)
isStart
public boolean isStart()
setStart
public void setStart(boolean start)
setParent
public void setParent(Node parent)
getParent
public Node getParent()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.awt.Point
isPath
public boolean isPath()
setPath
public void setPath(boolean isPath)
isNavPoint
public boolean isNavPoint()
setNavPoint
public void setNavPoint(boolean isNavPoint)
isTheirGoalCentre
public boolean isTheirGoalCentre()
setTheirGoalCentre
public void setTheirGoalCentre(boolean isTheirGoalCentre)
isOurGoalCentre
public boolean isOurGoalCentre()
setOurGoalCentre
public void setOurGoalCentre(boolean isOurGoalCentre)