Antkeeper  0.0.1
Public Member Functions | Public Attributes | List of all members
ai::bt::repeater< T > Struct Template Reference

Attempts to execute a child node n times or until the child fails. More...

#include <node.hpp>

Inheritance diagram for ai::bt::repeater< T >:
ai::bt::decorator_node< T > ai::bt::node< T >

Public Member Functions

virtual status execute (node< T >::context_type &context) const final
 
- Public Member Functions inherited from ai::bt::node< T >
virtual status execute (context_type &context) const =0
 Executes a node's function and returns its status. More...
 

Public Attributes

int n
 
- Public Attributes inherited from ai::bt::decorator_node< T >
node< T > * child
 

Additional Inherited Members

- Public Types inherited from ai::bt::node< T >
typedef T context_type
 Data type on which nodes operate. More...
 

Detailed Description

template<class T>
struct ai::bt::repeater< T >

Attempts to execute a child node n times or until the child fails.

Definition at line 93 of file node.hpp.

Member Function Documentation

◆ execute()

template<class T >
status ai::bt::repeater< T >::execute ( node< T >::context_type context) const
finalvirtual

Definition at line 140 of file node.hpp.

Member Data Documentation

◆ n

template<class T >
int ai::bt::repeater< T >::n

Definition at line 96 of file node.hpp.


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