|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzombie.ai.astar.AStarPathMap.Node
public static class AStarPathMap.Node
A single node in the search graph
Field Summary | |
---|---|
java.lang.Integer |
ID
|
SearchData[] |
searchData
|
short |
x
The x coordinate of the node |
short |
y
The y coordinate of the node |
short |
z
The z coordinate of the node |
Constructor Summary | |
---|---|
AStarPathMap.Node()
|
|
AStarPathMap.Node(short x,
short y,
short z)
Create a new node |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
|
java.lang.Integer |
getID()
|
SearchData |
getSearchData(int thread)
|
int |
setParent(int thread,
int id,
AStarPathMap.Node parent)
Set the parent of this node |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public short x
public short y
public short z
public SearchData[] searchData
public java.lang.Integer ID
Constructor Detail |
---|
public AStarPathMap.Node()
public AStarPathMap.Node(short x, short y, short z)
x
- The x coordinate of the nodey
- The y coordinate of the nodeMethod Detail |
---|
public java.lang.Integer getID()
getID
in interface INode
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
compareTo
in interface INode
Comparable.compareTo(Object)
public int setParent(int thread, int id, AStarPathMap.Node parent)
setParent
in interface INode
parent
- The parent node which lead us to this node
public SearchData getSearchData(int thread)
getSearchData
in interface INode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |