Empeld
Empeld plugin documentation.
|
Default world cost engine. Avoids hills and water. Should work for most default blocks More...
Public Member Functions | |
DefaultWorldCostEngine (IWorldReadonly world) | |
virtual int | GetActualCost (Vector3i src, Vector3i dst) |
Gets the actual cost traversing between two points If less than 0, treated as impassible. Otherwise cost is relative More... | |
virtual int | GetHeuristic (Vector3i src, Vector3i dst) |
Gets the heuristic cost between two points (to better predict which way to search) More... | |
Protected Attributes | |
readonly IWorldReadonly | World |
Default world cost engine. Avoids hills and water. Should work for most default blocks
essentials.action.Pathing.DefaultWorldCostEngine.DefaultWorldCostEngine | ( | IWorldReadonly | world | ) |
|
virtual |
Gets the actual cost traversing between two points If less than 0, treated as impassible. Otherwise cost is relative
These points should always be on the "surface" of blocks (aka, empty themselves, but over something solid).
src | Source. |
dst | Dst. |
Attribute: dst
;
Attribute: dst.X, dst.Y, dst.Z-1
;
Implements essentials.action.Pathing.IPathCostEngine.
|
virtual |
Gets the heuristic cost between two points (to better predict which way to search)
src | Source. |
dst | Dst. |
Implements essentials.action.Pathing.IPathCostEngine.
|
protected |