Interface NodeCostProcessor
- All Superinterfaces:
Processor
A processor that calculates a specific cost contribution for traversing to a node (PathPosition).
The costs returned by all registered
NodeCostProcessor
s for a given node transition are
typically summed up by the pathfinding pipeline along with the base transition cost.-
Method Summary
Modifier and TypeMethodDescriptionCalculates the cost contribution of this processor for the transition to the current node (PathPosition).Methods inherited from interface de.bsommerfeld.pathetic.api.pathing.processing.Processor
finalizeSearch, initializeSearch
-
Method Details
-
calculateCostContribution
Calculates the cost contribution of this processor for the transition to the current node (PathPosition).- Parameters:
context
- The evaluation context for the current node.- Returns:
- A
Cost
object representing the cost contribution. This value will be added to other costs for this transition.
-