Class CompositeNode
Node that has a list of children.
Inherited Members
Namespace: GraphViewBehaviorTree.Nodes
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public abstract class CompositeNode : Node
Fields
children
Declaration
protected List<Node> children
Field Value
Type | Description |
---|---|
List<Node> | The Children that this Node contains. |
Methods
AddChild(Node)
Add the child node to this node.
Declaration
public override void AddChild(Node childNode)
Parameters
Type | Name | Description |
---|---|---|
Node | childNode | The Node to add as a Child. |
Overrides
GetChildren()
Get a list of children the node contains.
Declaration
public override List<Node> GetChildren()
Returns
Type | Description |
---|---|
List<Node> | A list of children Nodes. |
Overrides
RemoveChild(Node)
Remove a Child from the Node.
Declaration
public override void RemoveChild(Node childNode)
Parameters
Type | Name | Description |
---|---|---|
Node | childNode | The Child to remove. |