A CC3NodeSequencer instance organizes nodes that are added to it. More...
#import <CC3NodeSequencer.h>
Public Member Functions | |
(BOOL) | - add: |
(id) | - initWithEvaluator: |
(BOOL) | - remove: |
Static Public Member Functions | |
(id) | + sequencer |
(id) | + sequencerWithEvaluator: |
Properties | |
CC3NodeEvaluator * | evaluator |
NSArray * | nodes |
The node sequencer contains a CC3NodeEvaluator to determine whether it is interested in a node when an attempt is made to add the node. Only nodes that are accepted the evaluator will be added to the sequencer.
The type of sequencing performed is determined by the subclass of CC3NodeSequencer. A wide range of subclasses may be constructed to perform a variety of sequencing techniques.
- (BOOL) add: | (CC3Node *) | aNode |
Adds the specified node to this sequencer if the node is accepted by the contained evaluator.
If the node is rejected by the evaluator, it is not added. Returns whether the node was added.
- (id) initWithEvaluator: | (CC3NodeEvaluator *) | anEvaluator |
Initializes this instance with the specified evaluator.
- (BOOL) remove: | (CC3Node *) | aNode |
Removes the specified node, if it exists within this sequencer, and returns whether it was removed.
+ (id) sequencer |
Allocates and initializes an autoreleased instance with no evaluator.
This sequencer will not accept any nodes until an evaluator is attached.
+ (id) sequencerWithEvaluator: | (CC3NodeEvaluator *) | anEvaluator |
Allocates and initializes an autoreleased instance with the specified evaluator.
- (CC3NodeEvaluator *) evaluator [read, write, retain] |
The evaluator that determines whether a node should be added to this sequencer.
If no evaluator is attached to this sequencer, no nodes will be added.
- (NSArray*) nodes [read, assign] |
An array of the nodes that have been added to this sequencer, ordered as this sequencer defines.
Implemented in CC3NodeArraySequencer.