|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ed.inf.sdp2012.group7.strategy.oldastar.OldPath
public class OldPath
Constructor Summary | |
---|---|
OldPath()
|
Method Summary | |
---|---|
void |
appendWayPoint(OldNode n)
Append a waypoint to the path. |
boolean |
contains(int x,
int y)
Check if this path contains the WayPoint |
int |
getLength()
|
OldNode |
getWayPoint(int index)
|
java.util.ArrayList<OldNode> |
getWayPoints()
|
int |
getX(int index)
Get the x-coordinate for the waypoint at the given index. |
int |
getY(int index)
Get the y-coordinate for the waypoint at the given index. |
java.util.ArrayList<java.awt.Point> |
pathToPoints()
|
void |
prependWayPoint(OldNode n)
Add a waypoint to the beginning of the path. |
void |
printWaypoints()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OldPath()
Method Detail |
---|
public java.util.ArrayList<OldNode> getWayPoints()
public int getLength()
public OldNode getWayPoint(int index)
public int getX(int index)
index
- The index of the waypoint to get the x-coordinate of.
public int getY(int index)
index
- The index of the waypoint to get the y-coordinate of.
public void appendWayPoint(OldNode n)
x
- The x coordinate of the waypoint.y
- The y coordinate of the waypoint.public void prependWayPoint(OldNode n)
x
- The x coordinate of the waypoint.y
- The y coordinate of the waypoint.public boolean contains(int x, int y)
x
- The x coordinate of the waypoint.y
- The y coordinate of the waypoint.
public java.util.ArrayList<java.awt.Point> pathToPoints()
public void printWaypoints()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |