|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAILOGIC::CGoalPath Class Reference#include <goal_path.h>
Inheritance diagram for NLAILOGIC::CGoalPath:
List of all members.
Public Methods |
| CGoalPath (NLAIAGENT::IAgentManager *) |
| CGoalPath (NLAIAGENT::IAgentManager *, NLAIAGENT::IBasicAgent *, std::list< NLAIAGENT::IObjectIA * > &, NLAISCRIPT::CAgentClass *) |
void | setGoalStack (NLAILOGIC::CGoalStack *) |
void | addGoal (CGoal *, bool action=true, int on_succes=0, int on_failure=0) |
void | setFather (NLAIAGENT::CProxyAgentMail *f) |
virtual void | onActivate () |
| Callback called at the activation of the actor. More...
|
virtual void | onUnActivate () |
| Callback called when the agent is unactivated. More...
|
virtual void | success () |
| Own success and failure functions These function tell other operators and goals that might be waiting for the execution of this one. More...
|
virtual void | failure () |
virtual int | getBaseMethodCount () const |
| These functions can be overloaded to have the actor execute something when paused or restarted. More...
|
sint32 | getMethodIndexSize () const |
| getMethodIndexSize define the nomber of method define in the class. More...
|
virtual NLAIAGENT::tQueue | getPrivateMember (const NLAIAGENT::IVarName *, const NLAIAGENT::IVarName *, const NLAIAGENT::IObjectIA &) const |
virtual NLAIAGENT::IObjectIA::CProcessResult | runMethodBase (int heritance, int index, NLAIAGENT::IObjectIA *) |
virtual NLAIAGENT::IObjectIA::CProcessResult | runMethodBase (int index, NLAIAGENT::IObjectIA *) |
virtual const NLAIC::IBasicType * | clone () const |
| Inherited functions. More...
|
virtual const NLAIC::IBasicType * | newInstance () const |
| This function allow a new instance, that mean that the class is a class factory. More...
|
virtual const NLAIC::CIdentType & | getType () const |
| getType return a unique string how represente the class, it can be the name of the class. More...
|
Static Public Attributes |
const NLAIC::CIdentType | IdGoalPath |
Private Attributes |
std::vector< CGoal * > | _Goals |
std::vector< int > | _OnSucces |
std::vector< int > | _OnFailure |
std::vector< bool > | _JmpNext |
int | _CurrentState |
NLAILOGIC::CGoalStack * | _GoalStack |
NLAIAGENT::CProxyAgentMail * | _Father |
Constructor & Destructor Documentation
Member Function Documentation
void NLAILOGIC::CGoalPath::addGoal |
( |
CGoal * |
, |
|
|
bool |
action = true, |
|
|
int |
on_succes = 0, |
|
|
int |
on_failure = 0 |
|
) |
|
|
void NLAILOGIC::CGoalPath::failure |
( |
|
) |
[virtual] |
|
int NLAILOGIC::CGoalPath::getBaseMethodCount |
( |
|
) |
const [virtual] |
|
sint32 NLAILOGIC::CGoalPath::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
|
getType return a unique string how represente the class, it can be the name of the class.
This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).
Reimplemented from NLAIAGENT::CActorScript.
Definition at line 200 of file goal_path.cpp.
References IdGoalPath.
Referenced by getPrivateMember. |
void NLAILOGIC::CGoalPath::onActivate |
( |
|
) |
[virtual] |
|
void NLAILOGIC::CGoalPath::onUnActivate |
( |
|
) |
[virtual] |
|
void NLAILOGIC::CGoalPath::success |
( |
|
) |
[virtual] |
|
Member Data Documentation
int NLAILOGIC::CGoalPath::_CurrentState [private]
|
|
std::vector<CGoal *> NLAILOGIC::CGoalPath::_Goals [private]
|
|
std::vector<bool> NLAILOGIC::CGoalPath::_JmpNext [private]
|
|
std::vector<int> NLAILOGIC::CGoalPath::_OnFailure [private]
|
|
std::vector<int> NLAILOGIC::CGoalPath::_OnSucces [private]
|
|
The documentation for this class was generated from the following files:
|
|