|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCActionCatmullRom.h>
Public Member Functions | |
| (id) | - initWithCapacity: |
| (void) | - addControlPoint: |
| (void) | - insertControlPoint:atIndex: |
| (void) | - replaceControlPoint:atIndex: |
| (CGPoint) | - getControlPointAtIndex: |
| (void) | - removeControlPointAtIndex: |
| (NSUInteger) | - count |
| (CCPointArray *) | - reverse |
| (void) | - reverseInline |
Static Public Member Functions | |
| (id) | + arrayWithCapacity: |
Protected Attributes | |
| NSMutableArray * | _controlPoints |
Properties | |
| NSMutableArray * | controlPoints |
An Array that contain control points. Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.
| - (void) addControlPoint: | (CGPoint) | controlPoint |
appends a control point
| + (id) arrayWithCapacity: | (NSUInteger) | capacity |
creates and initializes a Points array with capacity
| - (NSUInteger) count |
returns the number of objects of the control point array
| - (CGPoint) getControlPointAtIndex: | (NSInteger) | index |
get the value of a controlPoint at a given index
| - (id) initWithCapacity: | (NSUInteger) | capacity |
initializes a Catmull Rom config with a capacity hint
| - (void) insertControlPoint: | (CGPoint) | controlPoint | |
| atIndex: | (NSUInteger) | index | |
inserts a controlPoint at index
| - (void) removeControlPointAtIndex: | (NSUInteger) | index |
deletes a control point at a given index
| - (void) replaceControlPoint: | (CGPoint) | controlPoint | |
| atIndex: | (NSUInteger) | index | |
replaces an existing controlPoint at index
| - (CCPointArray*) reverse |
returns a new copy of the array reversed. User is responsible for releasing this copy
| - (void) reverseInline |
reverse the current control point array inline, without generating a new one
- (NSMutableArray*) controlPoints [read, write, retain] |
Array that contains the control points