Package | Description |
---|---|
com.b3dgs.lionengine.game.pathfinding |
A-Star algorithm implementation, allowing to search a path on a
MapTilePath . |
Modifier and Type | Class and Description |
---|---|
class |
PathfindableModel
Pathfindable implementation.
|
Modifier and Type | Method and Description |
---|---|
Path |
PathFinder.findPath(Pathfindable mover,
int dtx,
int dty,
boolean ignoreRef)
Find a path from the starting location provided to the destination location avoiding blockages and attempting to
honor costs provided by the tile map.
|
CoordTile |
MapTilePathModel.getClosestAvailableTile(Pathfindable mover,
int stx,
int sty,
int dtx,
int dty,
int radius) |
CoordTile |
MapTilePath.getClosestAvailableTile(Pathfindable mover,
int stx,
int sty,
int dtx,
int dty,
int radius)
Get the closest unused location around the area.
|
CoordTile |
MapTilePathModel.getClosestAvailableTile(Pathfindable mover,
Tiled to,
int radius) |
CoordTile |
MapTilePath.getClosestAvailableTile(Pathfindable mover,
Tiled to,
int radius)
Get the closest unused location around the area.
|
double |
MapTilePathModel.getCost(Pathfindable mover,
int tx,
int ty) |
double |
MapTilePath.getCost(Pathfindable mover,
int tx,
int ty)
Get the cost of the complete path, from start to end.
|
CoordTile |
MapTilePathModel.getFreeTileAround(Pathfindable mover,
int tx,
int ty,
int tw,
int th,
int radius) |
CoordTile |
MapTilePath.getFreeTileAround(Pathfindable mover,
int tx,
int ty,
int tw,
int th,
int radius)
Search a free area from this location.
|
CoordTile |
MapTilePathModel.getFreeTileAround(Pathfindable mover,
Tiled tiled,
int radius) |
CoordTile |
MapTilePath.getFreeTileAround(Pathfindable mover,
Tiled tiled,
int radius)
Search a free area from this location.
|
boolean |
MapTilePathModel.isAreaAvailable(Pathfindable mover,
int tx,
int ty,
int tw,
int th,
Integer ignoreObjectId) |
boolean |
MapTilePath.isAreaAvailable(Pathfindable mover,
int tx,
int ty,
int tw,
int th,
Integer ignoreObjectId)
Check if area if unused.
|
boolean |
MapTilePathModel.isBlocked(Pathfindable mover,
int tx,
int ty,
boolean ignoreObjectsId) |
boolean |
MapTilePath.isBlocked(Pathfindable mover,
int tx,
int ty,
boolean ignoreObjectsId)
Check if current location is blocking or not.
|
Copyright © 2016 Byron 3D Games Studio. All rights reserved.