|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrlgamekit.pathfinding.Area
public class Area
A breadth-first area finder. It will find all locations which are reachable from the given start point, using the given path source.
Point| Constructor Summary | |
|---|---|
Area()
Creates a new instance of Area with no points. |
|
| Method Summary | |
|---|---|
void |
clear()
Reset area, remove all points. |
boolean |
findArea(PathSource pathSource,
int sx,
int sy)
Breadth first area finding. |
java.util.ArrayList<java.awt.Point> |
getArea()
Access the list of all points in the found area. |
void |
setUseDiagonals(boolean yesno)
Use diagonals in are finding? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Area()
| Method Detail |
|---|
public void setUseDiagonals(boolean yesno)
public java.util.ArrayList<java.awt.Point> getArea()
public void clear()
public boolean findArea(PathSource pathSource,
int sx,
int sy)
pathSource - the pathSource to searchsx - Source x-coordinatesy - Source y-coordinate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||