Constructor
new PathFinderNode(x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
x | number | Tile x |
y | number | Tile y |
- Source
Members
cost
Properties| Type | Description |
|---|---|
| number | Extra cost added to A* G-score for stepping on this cell |
- Source
f
Properties| Type | Description |
|---|---|
| number | A* F-score: G + heuristic |
- Source
g
Properties| Type | Description |
|---|---|
| number | A* G-score: actual cost from start to this node |
- Source
isClosed
Properties| Type | Description |
|---|---|
| boolean | In the A* closed list |
- Source
isOpen
Properties| Type | Description |
|---|---|
| boolean | In the A* open list |
- Source
parent
Properties| Type | Description |
|---|---|
| PathFinderNode | | Parent for path reconstruction |
- Source
pos
Properties| Type | Description |
|---|---|
| Vector2 | Tile coords (integer) |
- Source
posWorld
Properties| Type | Description |
|---|---|
| Vector2 | World-space center of this tile (set by buildNodeData) |
- Source
walkable
Properties| Type | Description |
|---|---|
| boolean | True if this cell is passable (cleared each findPath call) |
- Source
Methods
isClear()
True if walkable and not blocked by cost.
- Source
reset()
Reset per-search state (called at the start of buildNodeData).
- Source