Пример #1
0
        public override float GetHeuristic(AStarNode node)
        {
            GOAPNode state = ((GOAPNode)node.Value);

            return(state.WorldState.DifferenceFrom(((GOAPNode)(node.Goal)).WorldState));
        }
Пример #2
0
 public abstract IEnumerable <AStarNode> GetNeighbours(AStarNode node);
Пример #3
0
 public abstract float GetHeuristic(AStarNode node);
Пример #4
0
 public bool SameValue(AStarNode other)
 {
     return(Object.ReferenceEquals(this.Value, other.Value));
 }