Package com.github.yellowstonegames.path
package com.github.yellowstonegames.path
-
ClassDescriptionAlgorithms<V>Most of the algorithms that operate on a
Graphare defined here, with some specific cases in subclasses.Performs A* search to find the shortest path between two Coord points.Connection<V>The most-commonly-used class that represents an edge between nodes on a Graph.A Connection that treats A-to-B as a different edge from B-to-A.A Connection that treats A-to-B and B-to-A as the same edge.A default setting for a DirectedGraph of Coord vertices where each passable cell has a cost to enter it from any passable neighbor.A default setting for anUndirectedGraphof Coord vertices where all connections have cost 1.A group of pathfinding algorithms that explore in all directions equally, and are commonly used when there is more than one valid goal, or when you want a gradient floodfill to mark each cell in an area with its distance from a goal.A kind ofGraphwhere all connections between vertices are one-way (but a connection may exist that goes from A to B and another connection may go from B to A), and each connection can have a different cost.Algorithms specific to directed graphs, likeCostlyGraph, as well as generalAlgorithms.Edge<V>Abstract superclass of any connection between nodes on a graph.Graph<V>Abstract superclass of actual Graph types.Heuristic<V>AHeuristicgenerates estimates of the cost to move from a given node to the goal.Node<V>An extended version ofBinaryHeap.Nodethat also stores a reference to the parent Graph, a vertex object of typeV, a Map of neighbor Nodes to the appropriateConnectionper Node, an extra List of those same Connections for faster iteration, and a lot of internal data used by algorithms in this package.LikeDrunkenWalk, this generates orthogonally-connected paths ofCoordthat meander through an area; unlike DrunkenWalk, this won't ever generate paths that cross themselves.A kind ofGraphwhere all connections between vertices are two-way and have equal cost for traveling A to B or B to A.Algorithms specific to undirected graphs, likeDefaultGraph, as well as generalAlgorithms.Calculates the Zone of Influence, also known as Zone of Control, for different points on a map.