#include <CCActionNode.h>
Public Member Functions | |
ActionNode () | |
virtual | ~ActionNode () |
Default destructor. More... | |
void | setUnitTime (float fTime) |
Sets the time interval of frame. More... | |
float | getUnitTime () |
Gets the time interval of frame. More... | |
void | setActionTag (int tag) |
Sets tag for ActionNode. More... | |
int | getActionTag () |
Gets tag for ActionNode. More... | |
void | setObject (CCObject *node) |
Sets node which will run a action. More... | |
CCObject * | getObject () |
Gets node which will run a action. More... | |
void | insertFrame (int index, ActionFrame *frame) |
Insets a ActionFrame to ActionNode. More... | |
void | addFrame (ActionFrame *frame) |
Pushs back a ActionFrame to ActionNode. More... | |
void | deleteFrame (ActionFrame *frame) |
Remove a ActionFrame from ActionNode. More... | |
void | clearAllFrame () |
Remove all ActionFrames from ActionNode. More... | |
int | getFirstFrameIndex () |
Gets index of first ActionFrame. More... | |
int | getLastFrameIndex () |
Gets index of last ActionFrame. More... | |
virtual bool | updateActionToTimeLine (float fTime) |
Updates action states to some time. More... | |
virtual void | playAction (bool bloop) |
Play the action. More... | |
virtual void | stopAction () |
Stop the action. More... | |
virtual void | initWithDictionary (cs::CSJsonDictionary *dic, CCObject *root) |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
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) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Protected Member Functions | |
virtual CCNode * | getActionNode () |
virtual CCSpawn * | refreshActionProperty () |
virtual void | runAction () |
virtual void | initActionNodeFromRoot (CCObject *root) |
virtual void | easingToFrame (float duration, float delayTime, ActionFrame *destFrame) |
Protected Attributes | |
int | currentFrameIndex |
int | destFrameIndex |
float | m_fUnitTime |
int | m_ActionTag |
CCObject * | m_Object |
CCSpawn * | m_actionSpawn |
CCAction * | m_action |
CCArray * | m_FrameArray |
int | frameArrayNum |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
ActionNode | ( | ) |
|
virtual |
Default destructor.
void addFrame | ( | ActionFrame * | frame) |
Pushs back a ActionFrame to ActionNode.
frame | the ActionFrame which will be added |
void clearAllFrame | ( | ) |
Remove all ActionFrames from ActionNode.
void deleteFrame | ( | ActionFrame * | frame) |
Remove a ActionFrame from ActionNode.
frame | the ActionFrame which will be removed |
|
protectedvirtual |
|
protectedvirtual |
int getActionTag | ( | ) |
Gets tag for ActionNode.
int getFirstFrameIndex | ( | ) |
Gets index of first ActionFrame.
int getLastFrameIndex | ( | ) |
Gets index of last ActionFrame.
CCObject* getObject | ( | ) |
Gets node which will run a action.
float getUnitTime | ( | ) |
Gets the time interval of frame.
|
protectedvirtual |
|
virtual |
void insertFrame | ( | int | index, |
ActionFrame * | frame | ||
) |
Insets a ActionFrame to ActionNode.
index | the index of ActionFrame |
frame | the ActionFrame which will be inserted |
|
virtual |
Play the action.
bloop | true the |
|
protectedvirtual |
|
protectedvirtual |
void setActionTag | ( | int | tag) |
Sets tag for ActionNode.
tag | tag of ActionNode |
void setObject | ( | CCObject * | node) |
Sets node which will run a action.
node | which will run a action |
void setUnitTime | ( | float | fTime) |
Sets the time interval of frame.
fTime | the time interval of frame |
|
virtual |
Stop the action.
|
virtual |
Updates action states to some time.
fTime | the time when need to update |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |