JumpPointFinder class
Path finder using the Jump Point Search algorithm @param {object} opt @param {function} opt.heuristic Heuristic function to estimate the distance (defaults to manhattan).
Constructors
- JumpPointFinder([HeuristicFn? heuristic])
Properties
- endNode ↔ Node?
-
getter/setter pair
- grid ↔ Grid?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- heuristic ↔ HeuristicFn?
-
getter/setter pair
- openList ↔ Heap?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startNode ↔ Node?
-
getter/setter pair
Methods
-
findPath(
int startX, int startY, int endX, int endY, Grid grid) → List -
Find and return the path.
@return {Array.<
number, number
>} The path, including both start and end positions. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited