public class AshCrowFlight extends java.lang.Object implements AstarHeuristic
Constructor and Description |
---|
AshCrowFlight()
Will use a factor of 1.0 to calculate the estimated cost
between nodes
|
AshCrowFlight(double factor)
Create the heuristic.
|
Modifier and Type | Method and Description |
---|---|
double |
getCost(GraphNode node,
GraphNode target)
Estimate the cost between the node and the target.
|
public AshCrowFlight()
public AshCrowFlight(double factor)
factor
- scaling factorpublic double getCost(GraphNode node, GraphNode target)
getCost
in interface AstarHeuristic
Processing library AI_for_2D_Games by Peter Lager. (C) 2013