Qualia  0.2
Public Member Functions | Public Attributes | List of all members
BehaviorTree::SuccessAfter Class Reference

Returns BT_RUNNING for the specified number of iterations, then returns BT_SUCCESS after that. More...

#include <BehaviorTreeBase.h>

Inheritance diagram for BehaviorTree::SuccessAfter:
Inheritance graph
[legend]
Collaboration diagram for BehaviorTree::SuccessAfter:
Collaboration graph
[legend]

Public Member Functions

BEHAVIOR_STATUS execute (void *agent)
 This method is invoked by the node's parent when the node should be run. More...
 
void init (void *agent)
 This method will be invoked before the node is executed for the first time. More...
 
 SuccessAfter (int t)
 
- Public Member Functions inherited from BehaviorTree::BehaviorTreeNode
virtual ~BehaviorTreeNode ()
 

Public Attributes

int n
 
int total
 

Detailed Description

Returns BT_RUNNING for the specified number of iterations, then returns BT_SUCCESS after that.

Constructor & Destructor Documentation

BehaviorTree::SuccessAfter::SuccessAfter ( int  t)
inline

Member Function Documentation

BEHAVIOR_STATUS BehaviorTree::SuccessAfter::execute ( void *  agent)
inlinevirtual

This method is invoked by the node's parent when the node should be run.

Implements BehaviorTree::BehaviorTreeNode.

void BehaviorTree::SuccessAfter::init ( void *  agent)
inlinevirtual

This method will be invoked before the node is executed for the first time.

Implements BehaviorTree::BehaviorTreeNode.

Member Data Documentation

int BehaviorTree::SuccessAfter::n
int BehaviorTree::SuccessAfter::total

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