cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
CCAnimationFrame A frame of the animation. More...
#include <CCAnimation.h>
Public Member Functions | |
CCAnimationFrame () | |
ctor More... | |
virtual | ~CCAnimationFrame () |
NA NA. More... | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
NA NA. More... | |
bool | initWithSpriteFrame (CCSpriteFrame *spriteFrame, float delayUnits, CCDictionary *userInfo) |
initializes the animation frame with a spriteframe, number of delay units and a notification user info More... | |
virtual CCSpriteFrame * | getSpriteFrame (void) |
virtual void | setSpriteFrame (CCSpriteFrame *var) |
virtual float | getDelayUnits (void) |
virtual void | setDelayUnits (float var) |
virtual CCDictionary * | getUserInfo (void) |
virtual void | setUserInfo (CCDictionary *var) |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
NA. More... | |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
CCObject (const CCObject &) | |
CCObject & | operator= (const CCObject &) |
virtual void | encodeWithCoder (DS_Dictionary *) |
virtual bool | canEncode () |
CCObjectType | getObjType () const |
virtual int | getTag () const |
virtual void | setTag (int nTag) |
void | setObjType (CCObjectType) |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Protected Attributes | |
CCSpriteFrame * | m_pSpriteFrame |
CCSpriteFrameName to be used. More... | |
float | m_fDelayUnits |
how many units of time the frame takes More... | |
CCDictionary * | m_pUserInfo |
A CCAnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
int | m_nTag |
int | m_eObjType |
unsigned int | m_uObjectIdxInArray |
Additional Inherited Members | |
![]() | |
static CCObject * | createWithCoder (DS_Dictionary *) |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
CCAnimationFrame A frame of the animation.
It contains information like:
CCAnimationFrame | ( | ) |
ctor
|
virtual |
NA NA.
|
virtual |
|
virtual |
|
virtual |
bool initWithSpriteFrame | ( | CCSpriteFrame * | spriteFrame, |
float | delayUnits, | ||
CCDictionary * | userInfo | ||
) |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
|
virtual |
|
virtual |
|
virtual |
|
protected |
how many units of time the frame takes
|
protected |
CCSpriteFrameName to be used.
|
protected |
A CCAnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.