OdinAI
 All Classes Namespaces Functions Variables
OdinAI::CompositeGoal Class Reference

#include <Goals.h>

Inheritance diagram for OdinAI::CompositeGoal:
OdinAI::BaseGoal

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 ( )
inlinevirtual

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 ( )
inlinevirtual

Function used to clean up an goal.

Reimplemented from OdinAI::BaseGoal.

virtual int OdinAI::CompositeGoal::Process ( )
inlinevirtual

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: