OdinAI
|
#include <Goals.h>
Public Member Functions | |
virtual void | AddGoal (BaseGoal *goal) |
virtual void | Activate () |
virtual int | Process () |
virtual int | ProcessSubgoals () |
virtual void | End () |
void | Clear () |
![]() | |
bool | IsActive () const |
void | ActivateIfInactive () |
bool | IsComplete () const |
bool | HasFailed () const |
int | GetStatus () const |
Protected Attributes | |
std::stack< BaseGoal * > | m_stackOfGoals |
![]() | |
int | m_status |
The status of the goal. | |
Composite goal consist of more than one goal.
|
inlinevirtual |
Function called before a goal is processed.
Reimplemented from OdinAI::BaseGoal.
|
virtual |
Adds a goal to a composite goal.
Reimplemented from OdinAI::BaseGoal.
|
inlinevirtual |
Function used to clean up an goal.
Reimplemented from OdinAI::BaseGoal.
|
inlinevirtual |
Function used to process goal.
Reimplemented from OdinAI::BaseGoal.
|
virtual |
Function used to process the subgoals