|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TileBasedMap
The description for the data we're pathfinding over. This provides the contract between the data being searched (i.e. the in game map) and the path finding generic tools
Method Summary | |
---|---|
boolean |
blocked(Mover mover,
int x,
int y,
int z,
int lx,
int ly,
int lz)
Check if the given location is blocked, i.e. |
float |
getCost(Mover mover,
int sx,
int sy,
int sz,
int tx,
int ty,
int tz)
get the cost of moving through the given tile. |
int |
getElevInTiles()
|
int |
getHeightInTiles()
get the height of the tile map. |
int |
getWidthInTiles()
get the width of the tile map. |
boolean |
isNull(int x,
int y,
int z)
|
boolean |
IsStairsNode(AStarPathMap.Node node,
AStarPathMap.Node prev,
IsoDirections directions)
|
void |
pathFinderVisited(int x,
int y,
int z)
Notification that the path finder visited a given tile. |
Method Detail |
---|
boolean blocked(Mover mover, int x, int y, int z, int lx, int ly, int lz)
mover
- The mover that is potentially moving through the specified
tile.x
- The x coordinate of the tile to checky
- The y coordinate of the tile to check
float getCost(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)
mover
- The mover that is trying to move across the tilesx
- The x coordinate of the tile we're moving fromsy
- The y coordinate of the tile we're moving fromtx
- The x coordinate of the tile we're moving toty
- The y coordinate of the tile we're moving to
int getElevInTiles()
int getHeightInTiles()
int getWidthInTiles()
void pathFinderVisited(int x, int y, int z)
x
- The x coordinate of the tile that was visitedy
- The y coordinate of the tile that was visitedboolean isNull(int x, int y, int z)
boolean IsStairsNode(AStarPathMap.Node node, AStarPathMap.Node prev, IsoDirections directions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |