OdinAI

- Main Page
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables
Public Member Functions | Protected Attributes | List of all members
OdinAI::CompositeGoal Class Reference

`#include <Goals.h>`

Inheritance diagram for OdinAI::CompositeGoal:

## Public Member Functions
virtual void | AddGoal (BaseGoal *goal)
virtual void | Activate ()
virtual int | Process ()
virtual int | ProcessSubgoals ()
virtual void | End ()
void | Clear ()
Public Member Functions inherited from OdinAI::BaseGoal
bool | IsActive () const
void | ActivateIfInactive ()
bool | IsComplete () const
bool | HasFailed () const
int | GetStatus () const

## Protected Attributes
std::stack< BaseGoal * > | m_stackOfGoals
Protected Attributes inherited from OdinAI::BaseGoal
int | m_status
| The status of the goal.

## Detailed Description

Composite goal consist of more than one goal.

## Member Function Documentation

virtual void OdinAI::CompositeGoal::Activate | ( |  | ) |
| inline virtual

Function called before a goal is processed.

Reimplemented from OdinAI::BaseGoal.

virtual void OdinAI::CompositeGoal::AddGoal | ( | BaseGoal * | goal | ) |
| virtual

Adds a goal to a composite goal.

Reimplemented from OdinAI::BaseGoal.

virtual void OdinAI::CompositeGoal::End | ( |  | ) |
| inline virtual

Function used to clean up an goal.

Reimplemented from OdinAI::BaseGoal.

virtual int OdinAI::CompositeGoal::Process | ( |  | ) |
| inline virtual

Function used to process goal.

Reimplemented from OdinAI::BaseGoal.

virtual int OdinAI::CompositeGoal::ProcessSubgoals | ( |  | ) |
| virtual

Function used to process the subgoals

The documentation for this class was generated from the following file:

- E:/Development/Projects/OdinAI/Include/OdinAI/Goals.h