AStar class
Class responsible for calculating the best route using the A* algorithm.
Constructors
Properties
-
barriers
→ List<
(int, int)> -
final
- columns → int
-
final
- end → (int, int)
-
final
-
grid
↔ List<
List< Tile> > -
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- rows → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → (int, int)
-
final
- withDiagonal → bool
-
final
Methods
-
findThePath(
{ValueChanged< List< ? doneList}) → Iterable<(int, int)> >(int, int)> - Finds the shortest path between the start and end points.
-
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
Static Methods
-
simplifyDirection(
List< (int, int)> path, TypeResumeDirection type) → List<(int, int)> -
simplifyPath(
Iterable< (int, int)> path) → List<(int, int)> -
Resume path
Example:
(1,2),(1,3),(1,4),(1,5)
=(1,2),(1,5)