/// <summary> /// Queues a new subgoal at the end of the goal list /// </summary> /// <param name="goal">The new subgoal to queue</param> /// <remarks>Throws an exception by default (this method is used in composite goals)</remarks> public virtual void AddRearSubgoal(Goal <T> goal) { throw new InvalidOperationException("Can´t queue a subgoal in an atomic goal"); }
/// <summary> /// Inserts a new subgoal at the start of the goal list /// </summary> /// <param name="goal">The new subgoal to insert</param> /// <remarks>Throws an exception by default (this method is used in composite goals)</remarks> public virtual void AddFrontSubgoal(Goal <T> goal) { throw new InvalidOperationException("Can´t insert a subgoal in an atomic goal"); }