|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PathFinder
A description of an implementation that can find a path from one location on a tile map to another based on information provided by that tile map.
TileBasedMap| Method Summary | |
|---|---|
Path |
findPath(Mover mover,
int sx,
int sy,
int tx,
int ty)
Find a path from the starting location provided (sx,sy) to the target location (tx,ty) avoiding blockages and attempting to honour costs provided by the tile map. |
| Method Detail |
|---|
Path findPath(Mover mover,
int sx,
int sy,
int tx,
int ty)
mover - The entity that will be moving along the path. This provides
a place to pass context information about the game entity doing the moving, e.g.
can it fly? can it swim etc.sx - The x coordinate of the start locationsy - The y coordinate of the start locationtx - The x coordinate of the target locationty - Teh y coordinate of the target location
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||