lab  2016-03-28
lightweight ai behaviour trees framework for Unity 3D
lab.AiBehaviour Class Reference

Data asset with parameters and behaviour trees. More...

Inherits ScriptableObject.

Public Member Functions

bool AddTree (AiTree tree)
 Adds new behaviour tree to this blackboard. More...
 
bool RemoveTree (AiTree tree)
 Removes behaviour tree from this blackboard. More...
 

Properties

AiBlackboard Blackboard [get]
 Gets a AiBlackboard for this AiBehaviour. More...
 
IList< AiTreeTrees [get]
 Gets readonly list of all behaviour trees assigned to this AiBehaviour. More...
 

Detailed Description

Data asset with parameters and behaviour trees.

AiBehaviour collects parameters in key-value manner. AiBehaviour is similar to Unity's Animator. It handles not only parameters, but also bevahiour trees. Single AiBehaviour has a blackboard and can have multiple trees.

Member Function Documentation

bool lab.AiBehaviour.AddTree ( AiTree  tree)

Adds new behaviour tree to this blackboard.

Parameters
treeNew behaviour tree for current blackboard.
Returns
True if new tree was added. Otherwise false.
bool lab.AiBehaviour.RemoveTree ( AiTree  tree)

Removes behaviour tree from this blackboard.

Parameters
treeTree to remove from current blackboard.
Returns
True if tree was removed. Otherwise false.

Property Documentation

AiBlackboard lab.AiBehaviour.Blackboard
get

Gets a AiBlackboard for this AiBehaviour.

IList<AiTree> lab.AiBehaviour.Trees
get

Gets readonly list of all behaviour trees assigned to this AiBehaviour.


The documentation for this class was generated from the following file: