Empeld
Empeld plugin documentation.
|
The AStar implementation of 3D path-finding More...
Public Member Functions | |
AStarEngine (Vector3i start, Vector3i end, IPathCostEngine costEngine, Vector3i[] neighborSet) | |
Path | GetResult () |
Returns the full resulting path. Throws if incomplete More... | |
Path | GetIncrementalPath () |
Gets the currently known best-path to the result. Depending on the implementation, may be called to get the best-path in the case where the overall search has failed. More... | |
void | Iterate () |
Iterate the engine (Call this in a loop until finished) More... | |
Path | Compute () |
Full path compute (Iterate until done). Returns Path or null More... | |
Properties | |
static readonly | Vector3i |
All neighbors More... | |
Vector3i | Start [get] |
Vector3i | End [get] |
PathEngineState | State [get] |
Properties inherited from essentials.action.Pathing.IPathingEngine | |
Vector3i | Start [get] |
Starting position More... | |
Vector3i | End [get] |
Ending position More... | |
PathEngineState | State [get] |
The current state of the path resolution More... | |
The AStar implementation of 3D path-finding
essentials.action.Pathing.Engines.AStarEngine.AStarEngine | ( | Vector3i | start, |
Vector3i | end, | ||
IPathCostEngine | costEngine, | ||
Vector3i [] | neighborSet | ||
) |
Attribute: _start
= new CostNode(_start, _startingHeuristic, 0, null);
Path essentials.action.Pathing.Engines.AStarEngine.Compute | ( | ) |
Full path compute (Iterate until done). Returns Path or null
Implements essentials.action.Pathing.IPathingEngine.
Path essentials.action.Pathing.Engines.AStarEngine.GetIncrementalPath | ( | ) |
Gets the currently known best-path to the result. Depending on the implementation, may be called to get the best-path in the case where the overall search has failed.
Implements essentials.action.Pathing.IPathingEngine.
Path essentials.action.Pathing.Engines.AStarEngine.GetResult | ( | ) |
Returns the full resulting path. Throws if incomplete
PathEngineException |
Implements essentials.action.Pathing.IPathingEngine.
void essentials.action.Pathing.Engines.AStarEngine.Iterate | ( | ) |
Iterate the engine (Call this in a loop until finished)
Attribute: newPoint
.ActualCost)
Attribute: newPoint
= new CostNode(newPoint, heuristicCost, newCost, current);
Implements essentials.action.Pathing.IPathingEngine.
|
get |
|
get |
|
get |
|
static |
All neighbors
Only neighbors that are not on the diagnol (Except Z axis, since step-up and step-down)
Attribute: ] NEIGHBORS_ALL = new Vector3i[
Attribute: ] NEIGHBORS_AXIS_ALIGNED = new Vector3i[