|
Hemisson Tjerk Kostelijk & Anne Schuth <-- BACK TO CLASSES |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNodeList
NodeList is designed to hold a number of Nodes and to perform some operations, specific to the A* algoritm, on them*
Constructor Summary | |
NodeList()
No-arg constructor, creates the vector that is used inside NodeList |
Method Summary | |
void |
add(Node n)
Adds Node n to the end of the list. |
boolean |
beenThereDoneThat(Node n)
|
Node |
get(int i)
|
Node |
get(int x,
int y)
|
Node |
getCurrentNode()
|
int |
getCurrentOrientation()
|
boolean |
includesPoint(Point p)
|
boolean |
isNotEmpty()
Checks wheter a list is not empty. |
Node |
lastElement()
|
int |
nodeExist(int x,
int y)
|
Node |
popNodeWithLowestF()
|
void |
remove(Node _Node)
|
void |
removeEqualPoints(Node n)
Removes all node from the list where the X and Y values are the same. |
void |
setCurrentNodeAndOrientation(Node _nCurrent,
int _iOrientation)
Sets the current Node with its orientation |
int |
size()
|
java.lang.String |
toString()
|
int[] |
worldBoundaries()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NodeList()
Method Detail |
public void add(Node n)
public Node get(int i)
public Node lastElement()
public void remove(Node _Node)
_Node
- is removed from the listpublic Node get(int x, int y)
public int size()
public int nodeExist(int x, int y)
public int[] worldBoundaries()
public void removeEqualPoints(Node n)
public Node popNodeWithLowestF()
public boolean isNotEmpty()
public boolean beenThereDoneThat(Node n)
public boolean includesPoint(Point p)
public java.lang.String toString()
public Node getCurrentNode()
public int getCurrentOrientation()
public void setCurrentNodeAndOrientation(Node _nCurrent, int _iOrientation)
|
Hemisson Tjerk Kostelijk & Anne Schuth <-- BACK TO CLASSES |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |