Represents a planner goal, used by PlannerReasoner.
More...
#include <Goal.hh>
Represents a planner goal, used by PlannerReasoner.
◆ OnChosen()
void grail::planning::Goal::OnChosen |
( |
const AIEntity & |
goalPursuer | ) |
|
|
virtual |
Called after the Goal is set by the reasoner
- Parameters
-
goalPursuer | - the entity that has chosen this goal |
◆ OnReached()
void grail::planning::Goal::OnReached |
( |
const AIEntity & |
goalPursuer | ) |
const |
|
virtual |
Called by the PlannerReasoner after Goal::IsReached method returns true
- Parameters
-
goalPursuer | - the entity that has chosen this goal |
◆ OnReapplied()
void grail::planning::Goal::OnReapplied |
( |
const AIEntity & |
goalPursuer | ) |
|
|
virtual |
Called if the current plan failed to achieve this goal but it got chosen once again
- Parameters
-
goalPursuer | - the entity that has chosen this goal |
◆ SetPlanSpaceConditions()
virtual void grail::planning::Goal::SetPlanSpaceConditions |
( |
class Planner & |
planner, |
|
|
const ObjectIndexBinding & |
objectIndexBinding |
|
) |
| const |
|
pure virtual |
In this method, all plan-space goal conditions should be set.
- Parameters
-
planner | - the planner to be provided with goal conditions. Use Planner::pushCondition method. |
The documentation for this class was generated from the following files:
- GrailPlanning/Goal.hh
- GrailPlanning/Goal.cpp