PointClickEngine::Navigation::Node
Inherits Reference < Object
Represents a pathfinding graph node for A* algorithm
The Node class contains the essential data for pathfinding algorithms:
- Position coordinates (x, y)
- Cost calculations (g_cost, h_cost, f_cost)
- Parent reference for path reconstruction
Constructors
Instance methods
adjacent_to?(other : Node) : Bool
Check if this node is adjacent to another (including diagonals)
h_cost
Sourceh_cost=(h_cost : Float32)
Sourceorthogonally_adjacent_to?(other : Node) : Bool
Check if this node is orthogonally adjacent (no diagonals)
with_costs(g_cost : Float32, h_cost : Float32, parent : Node | Nil = nil) : Node
Creates a copy of this node with updated costs
y=(y : Int32)
Source