Exemplo n.º 1
0
 /// <summary>
 /// Moves the agent towards the target of the action.
 /// </summary>
 /// <returns><c>true</c>, if agent is at the target, <c>false</c> otherwise.</returns>
 public abstract bool MoveAgent(GoapAction.WithContext nextAction);
Exemplo n.º 2
0
 /// <summary>
 /// About to do the next action.
 /// </summary>
 public abstract void AboutToDoAction(GoapAction.WithContext action);
Exemplo n.º 3
0
 /// <summary>
 /// One of the actions caused the plan to abort.
 /// </summary>
 /// <param name="aborter">The action that failed the plan.</param>
 public abstract void PlanAborted(GoapAction.WithContext aborter);
Exemplo n.º 4
0
        public static string PrettyPrint(GoapAction.WithContext action)
        {
            var s = new StringBuilder();

            return(s.Append(action.actionData.name).Append('@').Append((action.target as Component).name).ToString());
        }