Interface ITraitBasedPlanExecutor | AI Planner | 0.2.4-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    Interface ITraitBasedPlanExecutor

    An interface denoting the implementation of a plan executor for trait-based planning domains.

    Inherited Members
    IPlanExecutor.Plan
    IPlanExecutor.CurrentExecutorStateKey
    IPlanExecutor.CurrentPlanStateKey
    IPlanExecutor.CurrentStateData
    IPlanExecutor.CurrentActionKey
    IPlanExecutor.Status
    IPlanExecutor.SetPlan(IPlan)
    IPlanExecutor.UpdateCurrentState(IStateKey)
    IPlanExecutor.UpdateCurrentState(IStateData)
    IPlanExecutor.ReadyToAct()
    IPlanExecutor.ExecuteNextAction(IActionKey)
    IPlanExecutor.StopExecution()
    IPlanExecutor.GetActionName(IActionKey)
    IPlanExecutor.GetActionParametersInfo(IStateKey, IActionKey)
    Namespace: Unity.AI.Planner.Traits
    Syntax
    public interface ITraitBasedPlanExecutor : IPlanExecutor, IDisposable

    Methods

    SetExecutionSettings(MonoBehaviour, ActionExecutionInfo[], PlanExecutionSettings, Action<IActionKey>, Action<IStateKey>, Action<IStateKey>)

    Specifies the settings for the execution of the plan, as well as callbacks to invoke under certain conditions.

    Declaration
    void SetExecutionSettings(MonoBehaviour actor, ActionExecutionInfo[] actionExecutionInfos, PlanExecutionSettings executionSettings, Action<IActionKey> onActionComplete = null, Action<IStateKey> onTerminalStateReached = null, Action<IStateKey> onUnexpectedState = null)
    Parameters
    Type Name Description
    MonoBehaviour actor

    A MonoBehaviour used to start and stop coroutines.

    ActionExecutionInfo[] actionExecutionInfos

    Action execution information for the actions contained in the problem definition.

    PlanExecutionSettings executionSettings

    Settings governing the execution of the plan

    Action<IActionKey> onActionComplete

    A callback to invoke at the completion of each action

    Action<IStateKey> onTerminalStateReached

    A callback to invoke once a terminal state is reached by the executor

    Action<IStateKey> onUnexpectedState

    A callback to invoke if the executor enters a state not contained within the plan

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 13 November 2020