Package de.bsommerfeld.pathetic.api.pathing.processing
package de.bsommerfeld.pathetic.api.pathing.processing
Provides interfaces and classes for extending the core pathfinding logic of "pathetic" through a
customizable processor pipeline.
The processor system allows users to inject custom logic for:
- Node Validation (
NodeValidationProcessor): Determining whether aPathPositionis traversable or meets specific criteria. Users are responsible for implementing validators for fundamental checks like basic traversability (e.g., using aNavigationPointProvider) and world boundaries, as the core engine is designed to be highly generic. - Cost Calculation (
NodeCostProcessor): Modifying the cost of traversing to a node, allowing for terrain-specific penalties, incentives, or other dynamic cost adjustments.
Processor) and are provided with contextual information
for the current search (SearchContext) and
the specific node being evaluated (NodeEvaluationContext).
Users can configure a list of validators and cost calculators via the PathfinderConfiguration. The engine will
execute these processors in the provided order.
- Since:
- 5.0.0
-
ClassDescriptionRepresents a cost value used in pathfinding.A processor that calculates a specific cost contribution for traversing to a node (PathPosition).A processor that validates whether a node (PathPosition) or the transition to it is permissible during pathfinding.Base interface for pathfinding processors.Utility class for creating and combining
NodeValidationProcessorinstances.