overview wiki api reference download
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
gameplay::NodeCloneContext Class Reference

#include <Node.h>

List of all members.

Public Member Functions

 NodeCloneContext ()
 ~NodeCloneContext ()
AnimationfindClonedAnimation (const Animation *animation)
void registerClonedAnimation (const Animation *original, Animation *clone)
NodefindClonedNode (const Node *node)
void registerClonedNode (const Node *original, Node *clone)

Detailed Description

NodeCloneContext represents the context data that is kept when cloning a node. The NodeCloneContext is used to make sure objects don't get cloned twice.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

Finds the cloned animation of the given animation or NULL if this animation was not registered with this context.

Parameters:
animationThe animation to search for the cloned copy of.
Returns:
The cloned animation or NULL if not found.

Finds the cloned node of the given node or NULL if this node was not registered with this context.

Parameters:
nodeThe node to search for the cloned copy of.
Returns:
The cloned node or NULL if not found.

Registers the cloned animation with this context so that it doesn't get cloned twice.

Parameters:
originalThe pointer to the original animation.
cloneThe pointer to the cloned animation.
void gameplay::NodeCloneContext::registerClonedNode ( const Node original,
Node clone 
)

Registers the cloned node with this context so that it doens't get cloned twice.

Parameters:
originalThe pointer to the original node.
cloneThe pointer to the cloned node.
 All Classes Functions Variables Typedefs Enumerations Enumerator