CS::Animation::iSkeletonRandomNodeFactory Struct Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
CS::Animation::iSkeletonRandomNodeFactory Struct Reference
Mesh plugins

Factory for blending nodes playing randomly their sub-nodes. More...

`#include <imesh/animnode/skeleton2anim.h>`

Inheritance diagram for CS::Animation::iSkeletonRandomNodeFactory:

List of all members.

## Public Member Functions
virtual void | AddNode (iSkeletonAnimNodeFactory *node, float probability)=0
| Add a new sub-node to be played randomly.
virtual void | ClearNodes ()=0
| Remove all sub-nodes.
virtual iSkeletonAnimNodeFactory * | GetNode (uint node)=0
| Get the sub-node at the given index.
virtual uint | GetNodeCount () const =0
| Get the number of sub-nodes.
virtual void | SetAutomaticSwitch (bool automatic)=0
| Set that the node should automatically switch to next one upon completion of the current one, otherwise it will stop after the first sub-node has been played.
virtual void | SetNodeProbability (uint node, float weight)=0
| Set the selection probability for a specific node.

## Detailed Description

Factory for blending nodes playing randomly their sub-nodes.

It defines instances of CS::Animation::iSkeletonRandomNode.

Main creators of instances implementing this interface:

- CS::Animation::iSkeletonAnimPacketFactory::CreateRandomNode()

Main ways to get pointers to this interface:

- CS::Animation::iSkeletonRandomNode::GetFactory()
- CS::Animation::iSkeletonAnimNodeFactory::FindNode()

Main users of this interface:

- CS::Animation::iSkeletonFactory

Definition at line 897 of file skeleton2anim.h.

The documentation for this struct was generated from the following file:

- imesh/animnode/skeleton2anim.h