![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS 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.