Documentation
¶
Overview ¶
Package path has a pathfinding algorithm that operates on hexcoords.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pather ¶
type Pather interface {
// Cost indicates the move cost between a hex and one
// of its neighbors. Higher values are less desirable.
// Negative costs are treated as impassable.
Cost(a hex.Hex, direction int) int
// EstimatedCost returns the estimated cost between
// two hexes that are not necessarily neighbors.
// Negative costs are treated as impassable.
EstimatedCost(a, b hex.Hex) int
}
Pather contains domain knowledge for finding a path.
Click to show internal directories.
Click to hide internal directories.