public override float GetHeuristic(AStarNode node) { GOAPNode state = ((GOAPNode)node.Value); return(state.WorldState.DifferenceFrom(((GOAPNode)(node.Goal)).WorldState)); }
public abstract IEnumerable <AStarNode> GetNeighbours(AStarNode node);
public abstract float GetHeuristic(AStarNode node);
public bool SameValue(AStarNode other) { return(Object.ReferenceEquals(this.Value, other.Value)); }