com.b3dgs.lionengine.game.pathfinding
Class Node
java.lang.Object
com.b3dgs.lionengine.game.pathfinding.Node
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Object>
public class Node
- extends java.lang.Object
- implements java.lang.Comparable<java.lang.Object>
Constructor Summary |
Node(int x,
int y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Node
public Node(int x,
int y)
setParent
public int setParent(Node parent)
compareTo
public int compareTo(java.lang.Object other)
- Specified by:
compareTo
in interface java.lang.Comparable<java.lang.Object>
getX
public int getX()
setX
public void setX(int x)
getY
public int getY()
setY
public void setY(int y)
getCost
public float getCost()
setCost
public void setCost(float cost)
getParent
public Node getParent()
getHeuristic
public float getHeuristic()
setHeuristic
public void setHeuristic(float heuristic)
getDepth
public int getDepth()
setDepth
public void setDepth(int depth)