C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Tree::MoveSubtree

Defined in:  C4Tree.h
Moves all subnodes of an object to another object.
Prototype

virtual void MoveSubtree(Tree<type> *super);

Parameters
super The object to which the subnodes are moved. This cannot be the same object for which the MoveSubtree function is called.
Description
The MoveSubtree function removes all of the subnodes of an object and then transfers all of them as subnodes of the object specified by the super parameter.
See Also

Tree::AddSubnode

Tree::RemoveSubnode

Tree::PurgeSubtree