#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 () |
| Play the action. More... | |
| virtual void | stopAction () |
| Stop the action. More... | |
| virtual void | initWithDictionary (const rapidjson::Value &dic, CCObject *root) |
| virtual bool | isActionDoneOnce () |
| Gets if the action is done once time. More... | |
Public Member Functions inherited from CCObject | |
| 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) |
Public Member Functions inherited from CCCopying | |
| 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 *srcFrame, 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 |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
| 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 |
Gets if the action is done once time.
|
virtual |
Play the action.
|
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 |