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