MyTreeBuilder Class
From Fight Game AI Demo
A Sandcastle Documented Class Library
| MyTreeBuilder Class |
Fluent API for building a behaviour tree.
Origionaly Developed by Ashley Davis. Modified for use in this project by Steven Mcvey.
Namespace: FightGameAIDemo.Behavior_Tree
Assembly: FightGameAIDemo (in FightGameAIDemo.exe) Version: 1.0.0.0 (1.0.0.0)
C#
public class MyTreeBuilder
The MyTreeBuilder type exposes the following members.
| Name | Description | |
|---|---|---|
| MyTreeBuilder |
Initializes a new instance of the MyTreeBuilder class.
Modified to accept the rules for the condition nodes
|
| Name | Description | |
|---|---|---|
| Build |
Build the actual tree.
| |
| Condition |
Like an action node... but the function can return true/false and is mapped to success/failure.
| |
| Do |
Create an action node.
| |
| End |
Ends a sequence of children.
| |
| Inverter |
Create an inverter node that inverts the success/failure of its children.
| |
| Kick | ||
| Parallel |
Create a parallel node.
| |
| Punch |
Create an action node which is Punch attack type.
modified Do (action) Node.
| |
| Selector |
Create a selector node.
| |
| Sequence |
Create a sequence node.
| |
| Special |
Create an action node which is Special attack type.
| |
| Splice |
Splice a sub tree into the parent tree.
|
| Name | Description | |
|---|---|---|
| Close |
The close result, if true opponent is Close in Distance
| |
| Crouched |
The crouched result, if true opponent is crouched
| |
| curNode |
Last node created.
| |
| Far |
The far result, if true opponent is Far in Distance
| |
| Medium |
The medium result, if true opponent is Medium in Distance
| |
| parentNodeStack |
Stack node nodes that we are build via the fluent API.
|