Class LocalPathFinder
java.lang.Object
org.highlife.api.methods.walking.pathfinding.impl.PathFinder<Tile>
org.highlife.api.methods.walking.pathfinding.impl.local.LocalPathFinder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.highlife.api.methods.walking.pathfinding.impl.PathFinder
PathFinder.LocationState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculate(int sx, int sy, int tx, int ty) calculate(int sx, int sy, int tx, int ty, int z) calculate(int sx, int sy, int sz, int ex, int ey, int ez) intfloatgetHeuristicCost(int x, int y, int tx, int ty) floatgetHeuristicCost(int x, int y, int z, int tx, int ty, int tz) static LocalPathFinderdoublegetWalkingDistance(Tile startTile, Tile endTile) voidsetCurrentDepth(int currentDepth) Methods inherited from class org.highlife.api.methods.walking.pathfinding.impl.PathFinder
addBlacklistedTile, addObstacle, addTileCondition, addWebOnlyObstacleTile, checkTileCondition, clearBlacklist, clearTileConditions, getBlacklistedTiles, getDirection, getMovementCost, getNode, getObstacle, hasObstacle, isBlacklisted, isDirWall, isInPossibleObstacles, isTileWebOnly, onWebNodeVersionUpdate, removeBlacklistedTile, removeObstacle, removeTileCondition, removeWebOnlyObstacleTile, reset
-
Constructor Details
-
LocalPathFinder
public LocalPathFinder()
-
-
Method Details
-
getLocalPathFinder
-
calculate
- Overrides:
calculatein classPathFinder<Tile>
-
calculate
- Overrides:
calculatein classPathFinder<Tile>
-
calculate
- Specified by:
calculatein classPathFinder<Tile>
-
calculate
- Overrides:
calculatein classPathFinder<Tile>
-
getCurrentDepth
public int getCurrentDepth() -
setCurrentDepth
public void setCurrentDepth(int currentDepth) -
getHeuristicCost
public float getHeuristicCost(int x, int y, int tx, int ty) -
getHeuristicCost
public float getHeuristicCost(int x, int y, int z, int tx, int ty, int tz) -
getWalkingDistance
-