MyTreeBuilder Class

Fight Game AI Demo

MyTreeBuilder Class
Fluent API for building a behaviour tree. Origionaly Developed by Ashley Davis. Modified for use in this project by Steven Mcvey.
Inheritance Hierarchy
SystemObject  FightGameAIDemo.Behavior_TreeMyTreeBuilder

Namespace: FightGameAIDemo.Behavior_Tree
Assembly: FightGameAIDemo (in FightGameAIDemo.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class MyTreeBuilder

The MyTreeBuilder type exposes the following members.

Constructors
  NameDescription
Public methodMyTreeBuilder
Initializes a new instance of the MyTreeBuilder class. Modified to accept the rules for the condition nodes
Top
Methods
  NameDescription
Public methodBuild
Build the actual tree.
Public methodCondition
Like an action node... but the function can return true/false and is mapped to success/failure.
Public methodDo
Create an action node.
Public methodEnd
Ends a sequence of children.
Public methodInverter
Create an inverter node that inverts the success/failure of its children.
Public methodKick
Public methodParallel
Create a parallel node.
Public methodPunch
Create an action node which is Punch attack type. modified Do (action) Node.
Public methodSelector
Create a selector node.
Public methodSequence
Create a sequence node.
Public methodSpecial
Create an action node which is Special attack type.
Public methodSplice
Splice a sub tree into the parent tree.
Top
Fields
  NameDescription
Public fieldClose
The close result, if true opponent is Close in Distance
Public fieldCrouched
The crouched result, if true opponent is crouched
Public fieldcurNode
Last node created.
Public fieldFar
The far result, if true opponent is Far in Distance
Public fieldMedium
The medium result, if true opponent is Medium in Distance
Public fieldparentNodeStack
Stack node nodes that we are build via the fluent API.
Top
See Also