|
||||||||||
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(PathFindingContext context,
int tx,
int ty)
Check if the given location is blocked, i.e. |
float |
getCost(PathFindingContext context,
int tx,
int ty)
Get the cost of moving through the given tile. |
int |
getHeightInTiles()
Get the height of the tile map. |
int |
getWidthInTiles()
Get the width of the tile map. |
void |
pathFinderVisited(int x,
int y)
Notification that the path finder visited a given tile. |
Method Detail |
---|
int getWidthInTiles()
int getHeightInTiles()
void pathFinderVisited(int x, int y)
x
- The x coordinate of the tile that was visitedy
- The y coordinate of the tile that was visitedboolean blocked(PathFindingContext context, int tx, int ty)
context
- The context describing the pathfinding at the time of this requesttx
- The x coordinate of the tile we're moving toty
- The y coordinate of the tile we're moving to
float getCost(PathFindingContext context, int tx, int ty)
context
- The context describing the pathfinding at the time of this requesttx
- The x coordinate of the tile we're moving toty
- The y coordinate of the tile we're moving to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |