|
Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Implementation of the A* pathfinding algorithm.
Python script:


Public Types | |
| enum | State { NotComputed , Built , Failed , Relayed , InProgress } |
Public Member Functions | |
| AStarPath (GraphNode from, GraphNode to) | |
| override ICollection< GraphNode > | Build () |
| Builds path using A* algorithm between declared points. More... | |
| override IEnumerator | BuildCoroutine () |
| Builds the path using A* algorithm in Coroutine friendly way. More... | |
| override async Task< ICollection< GraphNode > > | BuildAsync () |
| Builds the path using A* algorithm asynchronously. More... | |
| Connection | GetConection (GraphNode achivedNode) |
| Looking for connection that leaded the path to the certain node. More... | |
| bool | TryLoadCache () |
| Loads path cache to the instance in case if exists. More... | |
| void | Release () |
| Releasing cached path between two nodes in case if has been built. | |
| void | MakeFailed () |
| Forces path to has State.Failed state. | |
| IEnumerator< GraphNode > | GetEnumerator () |
| Enumerated computed path. More... | |
Static Public Member Functions | |
| static void | ReleaseCache () |
| Releases entire cache. | |
| static bool | TryGetCachedPath (GraphNode from, GraphNode to, out Path path) |
| Looking for last cached path between two nodes. More... | |
| static bool | TryGetCachedPath (Type pathType, GraphNode from, GraphNode to, out Path path) |
| Looking for cached path between two nodes. More... | |
| static bool | TryGetCachedPath< T > (GraphNode from, GraphNode to, out T path) |
| Looking for cached path between two nodes. More... | |
Static Protected Member Functions | |
| static void | SetPathToCache (Path path) |
| Updating cache registry with a path entry. More... | |
Properties | |
| static int | CachedPathsCount [get] |
| Count of paths in cache. | |
| ReadOnlyCollection< GraphNode > | path [get, protected set] |
| Public built path. | |
| int | Length [get] |
| Length of the built path. -1 is not built yet. | |
| GraphNode | from [get] |
| Path start graph's node. | |
| GraphNode | to [get] |
| Path finish graph's node. | |
| State | state [get, protected set] |
| Current state of the path build. | |
| bool | isComputed [get] |
| Is the path has been computed. | |
| bool | isCached [get] |
| Checks is the path located at the cache registry to fast access. More... | |
Events | |
| static Action< Path > | PathReleased |
| Occurs when any path is no longer exists in cache. | |
|
inherited |
|
virtual |
Builds path using A* algorithm between declared points.
Reimplemented from Doloro.Graphs.Path.
|
virtual |
Builds the path using A* algorithm asynchronously.
Reimplemented from Doloro.Graphs.Path.
|
virtual |
Builds the path using A* algorithm in Coroutine friendly way.
Reimplemented from Doloro.Graphs.Path.
| Connection Doloro.Graphs.AStarPath.GetConection | ( | GraphNode | achivedNode | ) |
Looking for connection that leaded the path to the certain node.
| achivedNode | Node that has been achieved by the path. |
|
inherited |
Enumerated computed path.
|
staticprotectedinherited |
Updating cache registry with a path entry.
| path | Path to set. |
Decline caching of garbage paths with the 1 length.
|
staticinherited |
Looking for last cached path between two nodes.
| from | Start point. |
| to | End point |
| path | Path instance if found. |
|
staticinherited |
Looking for cached path between two nodes.
| pathType | Type of the path processor. |
| from | Start point. |
| to | End point |
| path | Path instance if found. |
|
staticinherited |
Looking for cached path between two nodes.
| T | Type of the path processor. |
| from | Start point. |
| to | End point |
| path | Path instance if found. |
| T | : | Path |
|
inherited |
Loads path cache to the instance in case if exists.
|
getinherited |
Checks is the path located at the cache registry to fast access.