Public Member Functions | Static Public Member Functions

CC3ActionRangeLimit Class Reference

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. More...

#import <CC3ActionInterval.h>

List of all members.

Public Member Functions

(id) - initWithAction:limitFrom:to:

Static Public Member Functions

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


Member Function 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: