com.b3dgs.lionengine.game.pathfinding
Class Node

java.lang.Object
  extended by 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)
           
 
Method Summary
 int compareTo(java.lang.Object other)
           
 float getCost()
           
 int getDepth()
           
 float getHeuristic()
           
 Node getParent()
           
 int getX()
           
 int getY()
           
 void setCost(float cost)
           
 void setDepth(int depth)
           
 void setHeuristic(float heuristic)
           
 int setParent(Node parent)
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node(int x,
            int y)
Method Detail

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)