lab
2016-03-28
lightweight ai behaviour trees framework for Unity 3D
|
Node that gives possibility to run other AiTree. More...
Inherits lab.ANode.
Public Member Functions | |
override bool | Run (AiBlackboard parameters, IList< AiTree > trees, List< ATaskScript > tasks) |
Runs this node. More... | |
override bool | DebugRun (AiBlackboard parameters, IList< AiTree > trees, int level, int nodeIndex) |
Runs debug this node. More... | |
Properties | |
int | TreeIndex [get, set] |
Sets/Gets index of AiTree to run. More... | |
Node that gives possibility to run other AiTree.
AiBehaviour is a container for many trees, it is possible to have multiple trees for one behaviour and run them in different circumstances. AiTree gives another oppotrunity, to make AiTree more readable by dividing them on smaller chunks and running by this node.
|
virtual |
Runs debug this node.
parameters | AiBlackboard with global parameters. |
trees | Readonly list with all ai trees. |
level | Level of how deep we are in this AiTree. |
nodeIndex | Index of current node in parent's node. If this is root, nodeIndex is 0. |
Implements lab.ANode.
|
virtual |
Runs this node.
parameters | AiBlackboard with global parameters. |
trees | Readonly list with all ai trees. |
tasks | List of task scripts to bind with task nodes. |
Implements lab.ANode.
|
getset |
Sets/Gets index of AiTree to run.