Exemple #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);
Exemple #2
0
 /// <summary>
 /// About to do the next action.
 /// </summary>
 public abstract void AboutToDoAction(GoapAction.WithContext action);
Exemple #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);
        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());
        }