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

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

#include <BehaviorTreeBase.h>

Inheritance diagram for BehaviorTree::FailureAfter:
Inheritance graph
[legend]
Collaboration diagram for BehaviorTree::FailureAfter:
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...
 
 FailureAfter (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_FAILURE after that.

Constructor & Destructor Documentation

BehaviorTree::FailureAfter::FailureAfter ( int  t)
inline

Member Function Documentation

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

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

Implements BehaviorTree::BehaviorTreeNode.

void BehaviorTree::FailureAfter::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::FailureAfter::n
int BehaviorTree::FailureAfter::total

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