Search Results for

    Show / Hide Table of Contents

    Class UtilityPlanner

    Finds the best action based on a list of considerations from Agent

    Inheritance
    Object
    UtilityPlanner
    Namespace: TinnyStudios.AIUtility
    Assembly: UtilityAIFramework.dll
    Syntax
    public class UtilityPlanner : MonoBehaviour

    Fields

    ExecuteEvenZeroScoreActions

    Declaration
    public bool ExecuteEvenZeroScoreActions
    Field Value
    Type Description
    Boolean

    FindActionsOnAwake

    Declaration
    public bool FindActionsOnAwake
    Field Value
    Type Description
    Boolean

    IdleDuration

    Declaration
    public float IdleDuration
    Field Value
    Type Description
    Single

    IncludeInActiveActions

    Declaration
    public bool IncludeInActiveActions
    Field Value
    Type Description
    Boolean

    LogTypes

    Declaration
    public EAgentLogType LogTypes
    Field Value
    Type Description
    EAgentLogType

    Paused

    Declaration
    public bool Paused
    Field Value
    Type Description
    Boolean

    ShowLogs

    Declaration
    public bool ShowLogs
    Field Value
    Type Description
    Boolean

    StartPlanDelay

    Declaration
    public float StartPlanDelay
    Field Value
    Type Description
    Single

    StartPlanOnAwake

    Declaration
    public bool StartPlanOnAwake
    Field Value
    Type Description
    Boolean

    UpdateType

    Declaration
    public EUpdateType UpdateType
    Field Value
    Type Description
    EUpdateType

    Methods

    GetActionScore(IUtilityAction, Agent)

    Scores an individual action.

    Declaration
    public virtual float GetActionScore(IUtilityAction action, Agent agent)
    Parameters
    Type Name Description
    IUtilityAction action
    Agent agent
    Returns
    Type Description
    Single

    GetBestAction(Agent)

    Returns the best action from agent.

    Declaration
    public virtual IUtilityAction GetBestAction(Agent agent)
    Parameters
    Type Name Description
    Agent agent
    Returns
    Type Description
    IUtilityAction

    GetRescaleScore(IUtilityAction, Single)

    Get rescale score using Dave's Averaging Scheme.

    Declaration
    protected virtual float GetRescaleScore(IUtilityAction action, float score)
    Parameters
    Type Name Description
    IUtilityAction action
    Single score
    Returns
    Type Description
    Single
    In This Article
    Back to top Generated by DocFX