#import <CC3Actions.h>
Instance Methods | |
(id) | - initWithAction:limitFrom:to: |
Class Methods | |
(id) | + actionWithAction:limitFrom:to: |
A CC3ActionRangeLimit holds another action, and serves to modify the normal zero-to-one range of update values to a smaller range that is presented to the contained action.
For example, for an instance that is limited to a range of 0.5 to 0.75, as the input update value changes from zero to one, the value that is forwarded to the contained action will change from 0.5 to 0.75.
+ (id) actionWithAction: | (CCActionInterval *) | action | |
limitFrom: | (GLfloat) | startOfRange | |
to: | (GLfloat) | endOfRange | |
Allocates and initializes an autoreleased instance that modify the update values that are forwarded to the specified action so that they remain within the specified range.
- (id) initWithAction: | (CCActionInterval *) | action | |
limitFrom: | (GLfloat) | startOfRange | |
to: | (GLfloat) | endOfRange | |
Initializes this instance to modify the update values that are forwarded to the specified action so that they remain within the specified range.