Qualia
0.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
qualia
plugins
bt
BehaviorTreeUtil.h
Go to the documentation of this file.
1
#ifndef BEHAVIOR_TREE_UTIL_H_
2
#define BEHAVIOR_TREE_UTIL_H_
3
4
#include "
BehaviorTree.h
"
5
6
namespace
BehaviorTree {
7
8
class
BehaviorTreeUtil
{
9
public
:
10
PriorityNode
*
priority
(
TRAVERSAL_POLICY
traversalPolicy =
RESTART
);
11
12
SequentialNode
*
sequential
();
13
14
ParallelNode
*
parallel
(
FAILURE_POLICY
failurePolicy = FAIL_ON_ALL,
SUCCESS_POLICY
successPolicy = SUCCEED_ON_ALL);
15
16
ProbabilityNode
*
probability
();
17
18
RepeatNode
*
repeat
(
int
repeats);
19
20
CountLimitNode
*
countLimit
(
int
limit,
bool
allow_reinitialize =
true
);
21
22
AlwaysRunning
*
running
();
23
AlwaysSuccess
*
success
();
24
AlwaysFailure
*
failure
();
25
26
SuccessAfter
*
successAfter
(
int
t);
27
FailureAfter
*
failureAfter
(
int
t);
28
29
WeightedBehaviorTreeNode
weighted
(
double
weight,
BehaviorTreeNode
* node);
30
31
BehaviorTreeNode
*
end
();
32
WeightedBehaviorTreeNode
endWeighted
();
33
};
34
35
#define BT_END NULL
36
#define BT_END_WEIGHTED WeightedBehaviorTreeNode::NULL_WEIGHTED_NODE
37
38
extern
BehaviorTreeUtil
BT
;
39
40
#define CHILDREN(...) setChildren(__VA_ARGS__, NULL)
41
#define WEIGHTED_CHILDREN(...) setWeightedChildren(__VA_ARGS__, WeightedBehaviorTreeNode::NULL_WEIGHTED_NODE)
42
43
}
44
45
#endif
Generated on Fri Oct 11 2013 19:01:21 for Qualia by
1.8.3.1