public final class Astar extends Object
Modifier and Type | Method and Description |
---|---|
static Heuristic |
createHeuristicClosest()
Create the closest heuristic.
|
static Heuristic |
createHeuristicClosestSquared()
Create the closest squared heuristic.
|
static Heuristic |
createHeuristicManhattan(int minimumCost)
Create the closest heuristic.
|
static PathFinder |
createPathFinder(MapTile map,
int maxSearchDistance,
Heuristic heuristic)
Create a path finder.
|
public static PathFinder createPathFinder(MapTile map, int maxSearchDistance, Heuristic heuristic)
map
- The map to be searched. Must have the MapTilePath
feature.maxSearchDistance
- The maximum depth we'll search before giving up.heuristic
- The heuristic used to determine the search order of the map.public static Heuristic createHeuristicClosest()
public static Heuristic createHeuristicClosestSquared()
public static Heuristic createHeuristicManhattan(int minimumCost)
minimumCost
- The minimum cost value.Copyright © 2016 Byron 3D Games Studio. All rights reserved.