Represents a planner's goal to achieve, used by Reasoners.PlannerReasoner. A single planning problem may have multiple Goals defined.
More...
Represents a planner's goal to achieve, used by Reasoners.PlannerReasoner. A single planning problem may have multiple Goals defined.
◆ IsReached()
abstract bool Grail.Planners.Goal.IsReached |
( |
AIEntity |
entity | ) |
|
|
pure virtual |
Determines if the goal has been satisfied for the provided AIEntity.
- Parameters
-
entity | The AIEntity object to test the achievement of the goal for. |
- Returns
◆ OnChosen()
virtual void Grail.Planners.Goal.OnChosen |
( |
AIEntity |
goalPursuer | ) |
|
|
inlinevirtual |
Called after the Goal is set by the reasoner.
Put your custom logic, if needed. Te base implementation is empty.
- Parameters
-
goalPursuer | The entity that has chosen this goal |
◆ OnReached()
virtual void Grail.Planners.Goal.OnReached |
( |
AIEntity |
goalPursuer | ) |
|
|
inlinevirtual |
Called by the PlannerReasoner after the Goal.IsReached() method returns true
.
Put your custom logic, if needed. Te base implementation is empty.
- Parameters
-
goalPursuer | The entity that has chosen this goal |
◆ OnReapplied()
virtual void Grail.Planners.Goal.OnReapplied |
( |
AIEntity |
goalPursuer | ) |
|
|
inlinevirtual |
Called if the current plan has failed to achieve this Goal but it got chosen once again.
Put your custom logic, if needed. Te base implementation is empty.
- Parameters
-
goalPursuer | The entity that has chosen this goal |
◆ SetPlanSpaceConditions()
In this method, all plan-space goal conditions should be set.
- Parameters
-
The documentation for this class was generated from the following file:
- GrailPlanners/source/Goal.cs