grail(C#)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.PlannerReasoner Class Reference

A reasoner which uses planners to find optimal sequences of behaviors based on goals More...

Inheritance diagram for Grail.PlannerReasoner:
Collaboration diagram for Grail.PlannerReasoner:

Classes

class  Config
 

Public Member Functions

 PlannerReasoner (IGoalSelector goalSelector, DomainTranslator translator, Config config)
 
override void SelectBehavior (AIEntity entity)
 Runs reasoner's selection algorithm and assigns chosen behavior to provided entity. More...
 
void SetNewGoal (Goal goal, AIEntity entity)
 
void SetupNewPlanner (DomainTranslator domainTranslator, Config config)
 Resets the planner domain. based on data provided by the new domain translator . This method can be used if you want the agent to start planning an entirely different set of actions and disregard the previously defined domain. More...
 
override ISnapshotGenerator CreateSnapshotGenerator (int entityId)
 

Public Attributes

bool IsComputing => planner.IsComputing
 

Properties

PlannerDelegate OnPlanningSucceeded = new Plan() [set]
 
PlannerDelegate OnPartialPlanFound [set]
 
System.Action< GoalOnPlanningFailed [set]
 
Goal CurrentGoal [get]
 
Behavior FallbackBehavior [set]
 The behavior that should be performed during plan computation or if no valid plan is found More...
 
uint DebugSnapshotFirstIteration [get, set]
 
uint DebugSnapshotLastIteration = 0 [get, set]
 
- Properties inherited from Grail.IGoalAcceptor
Goal CurrentGoal [get]
 

Events

System.Action OnPlanExecuted
 

Detailed Description

A reasoner which uses planners to find optimal sequences of behaviors based on goals

Member Function Documentation

override void Grail.PlannerReasoner.SelectBehavior ( AIEntity  entity)
inlinevirtual

Runs reasoner's selection algorithm and assigns chosen behavior to provided entity.

Parameters
entity

Implements Grail.Reasoner.

void Grail.PlannerReasoner.SetupNewPlanner ( DomainTranslator  domainTranslator,
Config  config 
)
inline

Resets the planner domain. based on data provided by the new domain translator . This method can be used if you want the agent to start planning an entirely different set of actions and disregard the previously defined domain.

Property Documentation

Behavior Grail.PlannerReasoner.FallbackBehavior
set

The behavior that should be performed during plan computation or if no valid plan is found


The documentation for this class was generated from the following file: