TileType
- type of tile used.public interface PathBasedMap<TileType extends AbstractPathTile> extends TileBasedMap<TileType>
DIR
Modifier and Type | Method and Description |
---|---|
boolean |
blocked(PathMover mover,
int v,
int h)
Check if current location is blocking or not.
|
float |
getCost(PathMover mover,
int sx,
int sy,
int tx,
int ty)
Get the cost of the complete path, from start till end.
|
int |
getRef(int v,
int h) |
TileType |
getTileArroundUntil(int v,
int h,
int width,
int height)
Search the first unblocking tile arround location (clock way).
|
void |
pathFinderVisited(int v,
int h)
Mark the tile as visited.
|
void |
setRef(int v,
int h,
int id) |
getHeightInTiles, getPatternsNumber, getTile, getTileHeight, getTileWidth, getWidthInTiles, renderTile
void pathFinderVisited(int v, int h)
v
- vertical location.h
- horizontal location.TileType getTileArroundUntil(int v, int h, int width, int height)
v
- vertical location.h
- horizontal location.width
- number of horizontal tiles to search.height
- number of vertical tiles to search.boolean blocked(PathMover mover, int v, int h)
mover
- object moving on map.v
- vertical location.h
- horizontal location.float getCost(PathMover mover, int sx, int sy, int tx, int ty)
mover
- object moving on map.sx
- starting location x.sy
- starting location y.tx
- ending location x.ty
- ending location y.void setRef(int v, int h, int id)
int getRef(int v, int h)