grail (C
1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
A reasoner which uses planners to find optimal sequences of behaviors based on goals More...
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) |
Properties | |
PlannerDelegate | OnPlanningSucceeded [set] |
PlannerDelegate | OnPartialPlanFound [set] |
System.Action< Goal > | OnPlanningFailed [set] |
Goal | CurrentGoal [get] |
bool | IsComputing [get] |
Behavior | FallbackBehavior [set] |
The behavior that should be performed during plan computation or if no valid plan is found More... | |
uint | DebugSnapshotFirstIteration = 0 [get, set] |
uint | DebugSnapshotLastIteration = uint.MaxValue [get, set] |
Properties inherited from Grail.IGoalAcceptor | |
Goal | CurrentGoal [get] |
Events | |
System.Action | OnPlanExecuted |
A reasoner which uses planners to find optimal sequences of behaviors based on goals
|
inlinevirtual |
Runs reasoner's selection algorithm and assigns chosen behavior to provided entity.
entity |
Implements Grail.Reasoner.
|
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.
|
set |
The behavior that should be performed during plan computation or if no valid plan is found