Class DecoratorNode
Node that has one child Node and is capable of augmenting the return state of it's childNode. The Interface, Abstract members will be implemented in the individual Decorator Nodes.
Inherited Members
Namespace: GraphViewBehaviorTree.Nodes
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public abstract class DecoratorNode : Node
Fields
child
Declaration
protected Node child
Field Value
Type | Description |
---|---|
Node | The Node to Augment. |
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. |