| 
    Qualia
    0.2
    
   | 
 
Wraps a function or member pointer that returns a boolean value into a conditional node. More...
#include <BoolCondition.h>


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... | |
| BoolCondition (bool(T::*_func)(), bool _check) | |
| BoolCondition (bool(*_func)(), bool _check) | |
| BoolCondition (bool(T::*const _func)() const, bool _check) | |
| template<> | |
| BEHAVIOR_STATUS | execute (void *agent) | 
| This method is invoked by the node's parent when the node should be run.  More... | |
  Public Member Functions inherited from BehaviorTree::BehaviorTreeNode | |
| virtual | ~BehaviorTreeNode () | 
Private Attributes | |
| bool(T::*const | func )() | 
| bool(*const | func2 )() | 
| bool | check | 
Wraps a function or member pointer that returns a boolean value into a conditional node.
To wrap a function pointer or static class member that takes no arguments and returns a boolean, instantiate BoolCondition without a type argument. For example, to wrap the function "func", with the signature "bool func()", one would do this: BoolCondition<> condition(&func,true);
To wrap the static method "sMethod" of the class "Class", one would do this: BoolCondition<> condition(&Class::sMethod,true);
To wrap a non-static class member, BoolCondition must be parameterized with the class's type. For example, to wrap the method "method" of class "Class", one would do this: BoolCondition<Class> condition(&Class:method,true);
      
  | 
  inline | 
| _func | the address of the (non-static) class member | 
| _check | the value that is being tested for | 
      
  | 
  inline | 
| _func | the address of the function or the static class member | 
| _check | the value that is being tested for | 
      
  | 
  inline | 
| _func | the address of the const non-static class member | 
| _check | the value that is being tested for | 
      
  | 
  inlinevirtual | 
This method is invoked by the node's parent when the node should be run.
Implements BehaviorTree::BehaviorTreeNode.
      
  | 
  virtual | 
This method is invoked by the node's parent when the node should be run.
Implements BehaviorTree::BehaviorTreeNode.
      
  | 
  inlinevirtual | 
This method will be invoked before the node is executed for the first time.
Implements BehaviorTree::BehaviorTreeNode.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
 1.8.3.1