AnimationFrame A frame of the animation. More...
#include <CCAnimation.h>
Public Member Functions | |
SpriteFrame * | getSpriteFrame () const |
void | setSpriteFrame (SpriteFrame *frame) |
var | setSpriteFrame ( var frame) |
local | setSpriteFrame ( local frame) |
float | getDelayUnits () const |
Gets the units of time the frame takes. More... | |
var | getDelayUnits () |
Gets the units of time the frame takes. More... | |
local | getDelayUnits () |
Gets the units of time the frame takes. More... | |
void | setDelayUnits (float delayUnits) |
Sets the units of time the frame takes. More... | |
var | setDelayUnits ( var delayUnits) |
Sets the units of time the frame takes. More... | |
local | setDelayUnits ( local delayUnits) |
Sets the units of time the frame takes. More... | |
const ValueMap & | getUserInfo () const |
Gets user infomation A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
ValueMap & | getUserInfo () |
var | getUserInfo () |
local | getUserInfo () |
void | setUserInfo (const ValueMap &userInfo) |
Sets user infomation. More... | |
var | setUserInfo ( var userInfo) |
Sets user infomation. More... | |
local | setUserInfo ( local 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... | |
![]() | |
Object () | |
Constructor. More... | |
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... | |
local | retainCount () |
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) |
![]() | |
virtual | ~Clonable () |
Object * | copy () const |
returns a copy of the object. More... | |
var | copy () |
returns a copy of the object. More... | |
local | copy () |
returns a copy of the object. More... | |
Static Public Member Functions | |
static AnimationFrame * | create (SpriteFrame *spriteFrame, float delayUnits, const ValueMap &userInfo) |
Creates the animation frame with a spriteframe, number of delay units and a notification user info. More... | |
local | create ( local spriteFrame, local delayUnits, local userInfo) |
Creates the animation frame with a spriteframe, number of delay units and a notification user info. More... | |
Protected Member Functions | |
AnimationFrame () | |
ctor () | |
AnimationFrame () | |
virtual | ~AnimationFrame () |
bool | initWithSpriteFrame (SpriteFrame *spriteFrame, float delayUnits, const ValueMap &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... | |
Protected Attributes | |
SpriteFrame * | _spriteFrame |
SpriteFrameName to be used. More... | |
float | _delayUnits |
how many units of time the frame takes More... | |
var | _delayUnits |
how many units of time the frame takes More... | |
local | _delayUnits |
how many units of time the frame takes More... | |
ValueMap | _userInfo |
A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
![]() | |
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 | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID More... | |
int | _luaID |
Lua reference id. More... | |
var | _luaID |
Lua reference id. More... | |
local | _luaID |
Lua reference id. More... | |
AnimationFrame A frame of the animation.
It contains information like:
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
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.
|
static |
Creates the animation frame with a spriteframe, number of delay units and a notification user info.
|
static |
Creates the animation frame with a spriteframe, number of delay units and a notification user info.
|
static |
Creates the animation frame with a spriteframe, number of delay units and a notification user info.
|
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.
|
inline |
|
inline |
|
inline |
|
protected |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
|
protected |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
|
protected |
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.