server/src/vendor/navigation/Navigation/Source/navigation_tile_handle.cpp
float NavTileHandle::MapSearchNode::GoalDistanceEstimate(MapSearchNode &nodeGoal)
{
	float xd = float(((float)x - (float)nodeGoal.x));
	float yd = float(((float)y - (float)nodeGoal.y));

	return xd + yd;
}
//-------------------------------------------------------------------------------------
// Here's the heuristic function that estimates the distance from a Node
// to the Goal. 
Here's the heuristic function that estimates the distance from a Node
to the Goal.
Here ' s the heuristic function that estimates the distance from a Node to the Goal .
float NavTileHandle::MapSearchNode::GoalDistanceEstimate(MapSearchNode &nodeGoal)
{
	float xd = float(((float)x - (float)nodeGoal.x));
	float yd = float(((float)y - (float)nodeGoal.y));
	return xd + yd;
}
float NavTileHandle :: MapSearchNode :: GoalDistanceEstimate ( MapSearchNode & nodeGoal ) { float xd = float ( ( ( float ) x - ( float ) nodeGoal . x ) ) ; float yd = float ( ( ( float ) y - ( float ) nodeGoal . y ) ) ; return xd + yd ; }
Here's the heuristic function that estimates the distance from a Node
to the Goal.
Here ' s the heuristic function that estimates the distance from a Node to the Goal .