v2.0.2
Instance Methods | Class Methods | List of all members
CC3ActionRangeLimit Class Reference

#import <CC3Actions.h>

Inheritance diagram for CC3ActionRangeLimit:
Inheritance graph
[legend]

Instance Methods

(id) - initWithAction:limitFrom:to:
 

Class Methods

(id) + actionWithAction:limitFrom:to:
 

Detailed Description

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.

Method Documentation

+ (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.


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