You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
365 B
17 lines
365 B
package mightypork.utils.math.algo.pathfinding;
|
|
|
|
|
|
import mightypork.utils.math.algo.Coord;
|
|
|
|
|
|
public abstract class Heuristic {
|
|
|
|
/**
|
|
* Get tile cost (estimate of how many tiles remain to the target)
|
|
*
|
|
* @param pos current pos
|
|
* @param target target pos
|
|
* @return estimated number of tiles
|
|
*/
|
|
public abstract double getCost(Coord pos, Coord target);
|
|
}
|
|
|