Module a_star

Procs

proc getAvailablePointId(self: AStar): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc addPoint(self: AStar; id: int64; position: Vector3; weightScale: float64 = 1.0) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getPointPosition(self: AStar; id: int64): Vector3 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setPointPosition(self: AStar; id: int64; position: Vector3) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getPointWeightScale(self: AStar; id: int64): float64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setPointWeightScale(self: AStar; id: int64; weightScale: float64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc removePoint(self: AStar; id: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc hasPoint(self: AStar; id: int64): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getPoints(self: AStar): Array {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getPointConnections(self: AStar; id: int64): PoolIntArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc connectPoints(self: AStar; id: int64; toId: int64; bidirectional: bool = true) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc disconnectPoints(self: AStar; id: int64; toId: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc arePointsConnected(self: AStar; id: int64; toId: int64): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc clear(self: AStar) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getClosestPoint(self: AStar; toPosition: Vector3): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getClosestPositionInSegment(self: AStar; toPosition: Vector3): Vector3 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getPointPath(self: AStar; fromId: int64; toId: int64): PoolVector3Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getIdPath(self: AStar; fromId: int64; toId: int64): PoolIntArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}

Methods

method estimateCost(self: AStar; fromId: int64; toId: int64): float64 {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method computeCost(self: AStar; fromId: int64; toId: int64): float64 {.
gcsafe, locks: 0, base, raises: [], tags: []
.}