lab
2016-03-28
lightweight ai behaviour trees framework for Unity 3D
|
Node responsible for running binded task script. 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 | TaskIndex [get, set] |
Sets/Gets index of task from AiController's tasks list to be executed. This is how tasks are binded currently. More... | |
string | Description [get, set] |
Sets/Gets description of current task. More... | |
Node responsible for running binded task script.
ANode represents logic of ai. TaskNodes are bridges between logic and implementation, they execute binded tasks.
|
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. |
Implements lab.ANode.
|
getset |
Sets/Gets description of current task.
|
getset |
Sets/Gets index of task from AiController's tasks list to be executed. This is how tasks are binded currently.