class AStarNode
Abstract class where you implement the move_cost
function which specifies how expensive it is to get from the current node to the other
node.
Attributes
g[RW]
h[RW]
parent[RW]
Public Class Methods
new()
click to toggle source
# File lib/gastar.rb, line 121 def initialize @g, @h, @parent = 0, 0, nil end
Public Instance Methods
move_cost(other)
click to toggle source
# File lib/gastar.rb, line 124 def move_cost(other) raise NotImplementedError end