C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Tree::AddSubnode

Defined in:  C4Tree.h
Adds a direct subnode to an object.
Prototype

virtual void AddSubnode(Tree<type> *node);

Parameters
node A pointer to the subnode to add.
Description
The AddSubnode function adds the node pointed to by the node parameter to an object. If the node is already a member of a tree, then it is first removed from that tree. If the node being added as a subnode has subnodes itself, then those subnodes are carried with the node into the new tree.
See Also

Tree::RemoveSubnode

Tree::GetFirstSubnode

Tree::GetNextNode