Simple BehaviorTree implementation with a few different types of nodes.
Add the following to your dependencies
compile 'com.github.njd5475:behavior-trees:0.0.1'
<dependency>
<groupId>com.github.njd5475</groupId>
<artifactId>behavior-trees</artifactId>
<version>0.0.1</version>
</dependency>
- Composite.InOrderSequence
- Composite.RandomSequence
- SelectorNode
- LeafNode
- Inverter
- RunningNode
- SuccessNode
- FailNode
- Condition
- NegateCondition
A context class is passed through all nodes when a performAction()
method is called