|
cocos2d-mac
2.0
Improved Cocos2D API Reference (Mac OS X version) for www.kobold2d.com developers
|
#import <CCAnimation.h>
Public Member Functions | |
| (id) | - initWithSpriteFrame:delayUnits:userInfo: |
Protected Attributes | |
| CCSpriteFrame * | spriteFrame_ |
| float | delayUnits_ |
| NSDictionary * | userInfo_ |
Properties | |
| CCSpriteFrame * | spriteFrame |
| float | delayUnits |
| NSDictionary * | userInfo |
CCAnimationFrame A frame of the animation. It contains information like:
| - (id) initWithSpriteFrame: | (CCSpriteFrame *) | spriteFrame | |
| delayUnits: | (float) | delayUnits | |
| userInfo: | (NSDictionary *) | userInfo | |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
- (float) delayUnits [read, write, assign] |
how many units of time the frame takes
- (CCSpriteFrame*) spriteFrame [read, write, retain] |
CCSpriteFrameName to be used
- (NSDictionary*) userInfo [read, write, retain] |
A CCAnimationFrameDisplayedNotification notification will be broadcasted when the frame is displayed with this dictionary as UserInfo. If UserInfo is nil, then no notification will be broadcasted.