jps-0.1.0.0: Jump point search for Haskell
Algorithm.Search.JumpPoint
data JumpGrid Source #
The pathfinding grid.
type Point = (Int, Int) Source #
A point on the grid.
make Source #
Arguments
Grid width
Grid height
Creates a JumpGrid with all nodes open.
JumpGrid
closeArea Source #
First point
Second point
Close a square defined by two points on the JumpGrid.
openArea Source #
Open a square defined by two points on the JumpGrid.
findPath Source #
Grid
Source location
Destination location
Attempt to pathfind over a JumpGrid.
isTileOpen :: JumpGrid -> Point -> Bool Source #
Returns True iff a point on the grid is open.
True