AI for Games 1.1.1
Loading...
Searching...
No Matches
game2dai.graph.AstarHeuristic Interface Reference
Inheritance diagram for game2dai.graph.AstarHeuristic:

Public Member Functions

double getCost (GraphNode node, GraphNode target)
 

Detailed Description

Interface for all A* heurtic classes

See also
AshCrowFlight
AshManhattan
Author
Peter Lager

Member Function Documentation

◆ getCost()

double game2dai.graph.AstarHeuristic.getCost ( GraphNode  node,
GraphNode  target 
)

Estimate the cost between the node and the target.

Implemented in game2dai.graph.AshCrowFlight, and game2dai.graph.AshManhattan.


The documentation for this interface was generated from the following file: