|
OdinAI
|
#include <Goals.h>
Public Member Functions | |
| virtual void | AddGoal (BaseGoal *goal) |
| virtual void | Activate () |
| virtual int | Process () |
| virtual void | End () |
| bool | IsActive () const |
| void | ActivateIfInactive () |
| bool | IsComplete () const |
| bool | HasFailed () const |
| int | GetStatus () const |
Protected Attributes | |
| int | m_status |
| The status of the goal. | |
Abstract class for a AI goal.
|
inlinevirtual |
Function called before a goal is processed.
Reimplemented in OdinAI::CompositeGoal, and OdinAI::AtomicGoal.
|
inline |
Activate goal if inactive. It will also activate the goal if the status is ready or failed.
|
inlinevirtual |
Adds a goal to a composite goal. If this function is called on a atomic goal, it will cause an assertion.
Reimplemented in OdinAI::CompositeGoal, and OdinAI::AtomicGoal.
|
inlinevirtual |
Function used to clean up an goal.
Reimplemented in OdinAI::CompositeGoal, and OdinAI::AtomicGoal.
|
inline |
Returns the status of the goal.
|
inline |
Returns true if goal has failed.
|
inline |
Is goal active?
|
inline |
Returns true if goal is complete.
|
inlinevirtual |
Function used to process an goal.
Reimplemented in OdinAI::CompositeGoal, and OdinAI::AtomicGoal.