Class Pathfinder
java.lang.Object
com.c1games.terminal.algo.pathfinding.Pathfinder
public class Pathfinder
extends java.lang.Object
This class computes data pertaining to the pathfinding from a particular point on the board, based on the random
access representation of the board created by movebuilder. As such, an instance of this class can be used to compute
the paths that certain units will move along, and is guarenteed to match the behavior of the actual game engine.
While this pathfinding is correct, it is not maximally optimized. Improving the efficiency of pathfinding is a task left to the user.
-
Constructor Summary
Constructors Constructor Description Pathfinder(GameState board, Coords start, int movementDirection)
-
Method Summary
-
Constructor Details
-
Pathfinder
public Pathfinder(GameState board, Coords start, int movementDirection) throws IllegalPathStartException- Throws:
IllegalPathStartException
-
-
Method Details
-
getPath
Get the computed path that a unit at the start point will follow.
-