AnimationFrame A frame of the animation. More...
#include <CCAnimation.h>
Public Member Functions | |
| AnimationFrame () | |
| virtual | ~AnimationFrame () |
| bool | initWithSpriteFrame (SpriteFrame *spriteFrame, float delayUnits, Dictionary *userInfo) |
| initializes the animation frame with a spriteframe, number of delay units and a notification user info More... | |
| var | initWithSpriteFrame ( var spriteFrame, var delayUnits, var userInfo) |
| initializes the animation frame with a spriteframe, number of delay units and a notification user info More... | |
| local | initWithSpriteFrame ( local spriteFrame, local delayUnits, local userInfo) |
| initializes the animation frame with a spriteframe, number of delay units and a notification user info More... | |
| SpriteFrame * | getSpriteFrame () const |
| void | setSpriteFrame (SpriteFrame *frame) |
| float | getDelayUnits () const |
| Gets the units of time the frame takes. More... | |
| void | setDelayUnits (float delayUnits) |
| Sets the units of time the frame takes. More... | |
| Dictionary * | getUserInfo () const |
| Gets user infomation A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
| var | getUserInfo () |
| Gets user infomation A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
| local | getUserInfo () |
| Gets user infomation A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
| void | setUserInfo (Dictionary *userInfo) |
| Sets user infomation. More... | |
| virtual AnimationFrame * | clone () const override |
| returns a copy of the object More... | |
| local | clone () |
| returns a copy of the object More... | |
Public Member Functions inherited from Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| void | release () |
| Release the ownership immediately. More... | |
| void | retain () |
| Retains the ownership. More... | |
| Object * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More... | |
| unsigned int | retainCount () const |
| Returns the object's current reference count. More... | |
| virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| virtual void | update (float dt) |
Public Member Functions inherited from Clonable | |
| virtual | ~Clonable () |
| CC_DEPRECATED_ATTRIBUTE Object * | copy () const |
| returns a copy of the object. More... | |
| local | copy () |
| returns a copy of the object. More... | |
Protected Attributes | |
| SpriteFrame * | _spriteFrame |
| SpriteFrameName to be used. More... | |
| float | _delayUnits |
| how many units of time the frame takes More... | |
| Dictionary * | _userInfo |
| A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
Protected Attributes inherited from Object | |
| unsigned int | _reference |
| count of references More... | |
| var | _reference |
| count of references More... | |
| local | _reference |
| count of references More... | |
| unsigned int | _autoReleaseCount |
| count of autorelease More... | |
| var | _autoReleaseCount |
| count of autorelease More... | |
| local | _autoReleaseCount |
| count of autorelease More... | |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID More... | |
| int | _luaID |
| Lua reference id. More... | |
AnimationFrame A frame of the animation.
It contains information like:
| AnimationFrame | ( | ) |
| var ctor | ( | ) |
| local AnimationFrame | ( | ) |
|
virtual |
|
overridevirtual |
returns a copy of the object
Implements Clonable.
|
overridevirtual |
returns a copy of the object
Implements Clonable.
|
overridevirtual |
returns a copy of the object
Implements Clonable.
|
inline |
Gets the units of time the frame takes.
|
inline |
Gets the units of time the frame takes.
|
inline |
Gets the units of time the frame takes.
|
inline |
|
inline |
|
inline |
|
inline |
Gets user infomation A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.
|
inline |
Gets user infomation A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.
|
inline |
Gets user infomation A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.
| bool initWithSpriteFrame | ( | SpriteFrame * | spriteFrame, |
| float | delayUnits, | ||
| Dictionary * | userInfo | ||
| ) |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
| var initWithSpriteFrame | ( | var | spriteFrame, |
| var | delayUnits, | ||
| var | userInfo | ||
| ) |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
| local initWithSpriteFrame | ( | local | spriteFrame, |
| local | delayUnits, | ||
| local | userInfo | ||
| ) |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
|
inline |
Sets the units of time the frame takes.
|
inline |
Sets the units of time the frame takes.
|
inline |
Sets the units of time the frame takes.
|
inline |
|
inline |
|
inline |
|
inline |
Sets user infomation.
|
inline |
Sets user infomation.
|
inline |
Sets user infomation.
|
protected |
how many units of time the frame takes
|
protected |
how many units of time the frame takes
|
protected |
how many units of time the frame takes
|
protected |
SpriteFrameName to be used.
|
protected |
SpriteFrameName to be used.
|
protected |
SpriteFrameName to be used.
|
protected |
A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.
|
protected |
A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.
|
protected |
A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.