Search Results for

    Show / Hide Table of Contents

    Class TurnBasedGameManager

    An example game manager for a turn base agent. This is not production code so please use it just as an example on a starting point on understanding how to execute and set up a turn based Agent.

    Inheritance
    Object
    TurnBasedGameManager
    Namespace: TinnyStudios.AIUtility.Impl.Examples.TurnBasedSpell
    Assembly: UtilityAIFramework.dll
    Syntax
    public class TurnBasedGameManager : MonoBehaviour

    Fields

    Agent

    Declaration
    public Agent Agent
    Field Value
    Type Description
    Agent

    DecisionLabel

    Declaration
    public TextMeshProUGUI DecisionLabel
    Field Value
    Type Description
    TextMeshProUGUI

    ElementTraitTable

    A table for weakness and strength for each element types.

    Declaration
    public static Dictionary<EElementType, ElementTrait> ElementTraitTable
    Field Value
    Type Description
    Dictionary<EElementType, ElementTrait>

    TurnCount

    Declaration
    public int TurnCount
    Field Value
    Type Description
    Int32

    Methods

    Choose(SpellAttackAction)

    When a spell action performs, it calls this method which then evaluate all the result of the attack.

    Declaration
    public void Choose(SpellAttackAction spellAttackAction)
    Parameters
    Type Name Description
    SpellAttackAction spellAttackAction

    ChooseAttack()

    Choose attack will find a plan and check if its valid and then execute the plan immediately. This is called by a UnityEvent on the Attack! button.

    Declaration
    public void ChooseAttack()
    In This Article
    Back to top Generated by DocFX