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
TurnBasedGameManager
Assembly: UtilityAIFramework.dll
Syntax
public class TurnBasedGameManager : MonoBehaviour
Fields
Agent
Declaration
Field Value
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
TurnCount
Declaration
Field Value
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
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()