copy

abstract fun copy(parent: Game.Node?): Game.Node

Creates a deep copy of this node and its entire subtree, assigning the specified parent to the new copy. This process is recursive; copying the root node copies the entire game tree.