#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 (cocos2d::Ref *node) |
| Sets node which will run a action. More... | |
| cocos2d::Ref * | 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, cocos2d::Ref *root) |
| virtual void | initWithBinary (CocoLoader *cocoLoader, stExpCocoNode *pCocoNode, Ref *root) |
| virtual bool | isActionDoneOnce () |
| Gets if the action is done once time. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
Protected Member Functions | |
| int | valueToInt (const std::string &value) |
| bool | valueToBool (const std::string &value) |
| float | valueToFloat (const std::string &value) |
| virtual cocos2d::Node * | getActionNode () |
| virtual cocos2d::Spawn * | refreshActionProperty () |
| virtual void | runAction () |
| virtual void | initActionNodeFromRoot (cocos2d::Ref *root) |
| virtual void | easingToFrame (float duration, float delayTime, ActionFrame *srcFrame, ActionFrame *destFrame) |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. More... | |
Protected Attributes | |
| int | _currentFrameIndex |
| int | _destFrameIndex |
| float | _fUnitTime |
| int | _actionTag |
| cocos2d::Spawn * | _actionSpawn |
| cocos2d::Action * | _action |
| cocos2d::Ref * | _object |
| std::vector< cocos2d::Vector < ActionFrame * > * > | _frameArray |
| int | _frameArrayNum |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| var | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
| 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.
| cocos2d::Ref* getObject | ( | ) |
Gets node which will run a action.
| float getUnitTime | ( | ) |
Gets the time interval of frame.
|
protectedvirtual |
|
virtual |
|
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 | ( | cocos2d::Ref * | 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 |
|
protected |
|
protected |
|
protected |