Newer
Older
Hierarchical-Task-Network-Unity-3D / Assets / Scripts / HTN / ITask.cs
using System;
using System.Collections;
using UnityEngine;

public interface ITask
{
    /// <summary>
    ///     Used for debugging and identification purposes
    /// </summary>
    public abstract string Name { get; }

    /// <summary>
    ///     Tags if it's a Compound Task
    /// </summary>
    public abstract bool IsCompound { get;}

    /// <summary>
    ///     Checks if the task is finished
    /// </summary>
    public bool IsTaskFinished(HTNPlanner planner) => false;
}