You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
515 B
C#

using System.Collections.Generic;
namespace FluidHTN.Compounds
{
public interface ICompoundTask : ITask
{
List<ITask> Subtasks { get; }
ICompoundTask AddSubtask(ITask subtask);
/// <summary>
/// Decompose the task onto the tasks to process queue, mind it's depth first
/// </summary>
/// <param name="ctx"></param>
/// <returns></returns>
DecompositionStatus Decompose(IContext ctx, int startIndex, out Queue<ITask> result);
}
}