Package de.bsommerfeld.pathetic.api.pathing.hook
package de.bsommerfeld.pathetic.api.pathing.hook
Observation hooks into a running search.
A PathfinderHook is invoked once per main
loop iteration with a PathfindingContext
(current position and depth). Hooks are registered via the configuration; the engine snapshots
them at search start, so hooks registered while a search runs apply only to subsequent
searches. Hooks run on the search thread and therefore add directly to per-iteration cost.
-
ClassDescriptionInterface for hooks that are called during the pathfinding process.Context for the current step of the pathfinding process.