BehaviorTree project in C++ that I wrote for fun xD
Tree node types
- BehaviorTree
- Selector
- Sequence
- Parallel
tick all subtrees each time
StopOnFail : stop and return when one subtree fails
- Loop
loop X times or infinite loop - UntilSuccess
- UntilFailure
- BlackboardComparator
compare two blackboard entries or compare one entry to value
AbortMode : suspend or abort subtree when comparison fails - BlackboardCondition
detect if blackboard key is set
AbortMode : suspend or abort subtree when condition fails
- Action
base class of all actions
Storage of key-value pairs with observers
- Set
- Get
- Has
- Remove
- RegisterObserver
- UnregisterObserver
- int
- float
- bool
can support other built-in/custom data types
An agent is roaming around in 1D space and can be interrupted by pressing the SPACE key
- BehaviorTree
- Selector
- BlackboardCondition
- Sequence
- FindRandomDestination
- MoveTo
- StayIdle