AnimationFrame A frame of the animation.
More...
#include <CCAnimation.h>
|
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...
|
|
AnimationFrame A frame of the animation.
It contains information like:
- sprite frame name
- # of delay units.
- offset
- Since
- v2.0
Creates the animation frame with a spriteframe, number of delay units and a notification user info.
- Since
- 3.0
var create |
( |
var |
spriteFrame, |
|
|
var |
delayUnits, |
|
|
var |
userInfo |
|
) |
| |
|
static |
Creates the animation frame with a spriteframe, number of delay units and a notification user info.
- Since
- 3.0
local create |
( |
local |
spriteFrame, |
|
|
local |
delayUnits, |
|
|
local |
userInfo |
|
) |
| |
|
static |
Creates the animation frame with a spriteframe, number of delay units and a notification user info.
- Since
- 3.0
float getDelayUnits |
( |
) | |
const |
|
inline |
Gets the units of time the frame takes.
Gets the units of time the frame takes.
Gets the units of time the frame takes.
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.
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.
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, |
|
|
const ValueMap & |
userInfo |
|
) |
| |
|
protected |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
var initWithSpriteFrame |
( |
var |
spriteFrame, |
|
|
var |
delayUnits, |
|
|
var |
userInfo |
|
) |
| |
|
protected |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
local initWithSpriteFrame |
( |
local |
spriteFrame, |
|
|
local |
delayUnits, |
|
|
local |
userInfo |
|
) |
| |
|
protected |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
void setDelayUnits |
( |
float |
delayUnits) | |
|
|
inline |
Sets the units of time the frame takes.
var setDelayUnits |
( |
var |
delayUnits) | |
|
|
inline |
Sets the units of time the frame takes.
local setDelayUnits |
( |
local |
delayUnits) | |
|
|
inline |
Sets the units of time the frame takes.
var setSpriteFrame |
( |
var |
frame) | |
|
|
inline |
local setSpriteFrame |
( |
local |
frame) | |
|
|
inline |
void setUserInfo |
( |
const ValueMap & |
userInfo) | |
|
|
inline |
var setUserInfo |
( |
var |
userInfo) | |
|
|
inline |
local setUserInfo |
( |
local |
userInfo) | |
|
|
inline |
how many units of time the frame takes
how many units of time the frame takes
how many units of time the frame takes
SpriteFrameName to be used.
SpriteFrameName to be used.
SpriteFrameName to be used.
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.
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.
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.
The documentation for this class was generated from the following file: