#include <CCActionNode.h>
Public Member Functions | |
ActionNode () | |
Default constructor. More... | |
virtual | ~ActionNode () |
Default destructor. More... | |
local | ~ActionNode () |
Default destructor. More... | |
void | setUnitTime (float fTime) |
Sets the time interval of frame. More... | |
local | setUnitTime ( local 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 (Object *node) |
Sets node which will run a action. More... | |
Object * | getObject () |
Gets node which will run a action. More... | |
var | getObject () |
Gets node which will run a action. More... | |
local | 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... | |
var | getFirstFrameIndex () |
Gets index of first ActionFrame. More... | |
local | 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::JsonDictionary *dic, Object *root) |
var | initWithDictionary ( var dic, var root) |
local | initWithDictionary ( local dic, local root) |
![]() | |
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... | |
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) |
Protected Member Functions | |
virtual Node * | getActionNode () |
virtual Spawn * | refreshActionProperty () |
virtual void | runAction () |
virtual void | initActionNodeFromRoot (Object *root) |
var | initActionNodeFromRoot ( var root) |
local | initActionNodeFromRoot ( local root) |
virtual void | easingToFrame (float duration, float delayTime, ActionFrame *destFrame) |
local | easingToFrame ( local duration, local delayTime, local destFrame) |
Protected Attributes | |
int | _currentFrameIndex |
local | _currentFrameIndex |
int | _destFrameIndex |
float | _fUnitTime |
var | _fUnitTime |
local | _fUnitTime |
int | _actionTag |
Spawn * | _actionSpawn |
var | _actionSpawn |
local | _actionSpawn |
Action * | _action |
var | _action |
local | _action |
Object * | _object |
Array * | _frameArray |
var | _frameArray |
local | _frameArray |
int | _frameArrayNum |
var | _frameArrayNum |
local | _frameArrayNum |
![]() | |
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... | |
ActionNode | ( | ) |
Default constructor.
var ActionNode | ( | ) |
Default constructor.
local ActionNode | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
virtual |
Default destructor.
|
virtual |
Default destructor.
void addFrame | ( | ActionFrame * | frame) |
Pushs back a ActionFrame to ActionNode.
frame | the ActionFrame which will be added |
var addFrame | ( | var | frame) |
Pushs back a ActionFrame to ActionNode.
frame | the ActionFrame which will be added |
local addFrame | ( | local | frame) |
Pushs back a ActionFrame to ActionNode.
frame | the ActionFrame which will be added |
void clearAllFrame | ( | ) |
Remove all ActionFrames from ActionNode.
var clearAllFrame | ( | ) |
Remove all ActionFrames from ActionNode.
local clearAllFrame | ( | ) |
Remove all ActionFrames from ActionNode.
void deleteFrame | ( | ActionFrame * | frame) |
Remove a ActionFrame from ActionNode.
frame | the ActionFrame which will be removed |
var deleteFrame | ( | var | frame) |
Remove a ActionFrame from ActionNode.
frame | the ActionFrame which will be removed |
local deleteFrame | ( | local | frame) |
Remove a ActionFrame from ActionNode.
frame | the ActionFrame which will be removed |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
int getActionTag | ( | ) |
Gets tag for ActionNode.
var getActionTag | ( | ) |
Gets tag for ActionNode.
local getActionTag | ( | ) |
Gets tag for ActionNode.
int getFirstFrameIndex | ( | ) |
Gets index of first ActionFrame.
var getFirstFrameIndex | ( | ) |
Gets index of first ActionFrame.
local getFirstFrameIndex | ( | ) |
Gets index of first ActionFrame.
int getLastFrameIndex | ( | ) |
Gets index of last ActionFrame.
var getLastFrameIndex | ( | ) |
Gets index of last ActionFrame.
local getLastFrameIndex | ( | ) |
Gets index of last ActionFrame.
Object* getObject | ( | ) |
Gets node which will run a action.
var getObject | ( | ) |
Gets node which will run a action.
local getObject | ( | ) |
Gets node which will run a action.
float getUnitTime | ( | ) |
Gets the time interval of frame.
var getUnitTime | ( | ) |
Gets the time interval of frame.
local getUnitTime | ( | ) |
Gets the time interval of frame.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
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 |
var insertFrame | ( | var | index, |
var | frame | ||
) |
Insets a ActionFrame to ActionNode.
index | the index of ActionFrame |
frame | the ActionFrame which will be inserted |
local insertFrame | ( | local | index, |
local | 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 |
|
virtual |
Play the action.
bloop | true the |
|
virtual |
Play the action.
bloop | true the |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
void setActionTag | ( | int | tag) |
Sets tag for ActionNode.
tag | tag of ActionNode |
var setActionTag | ( | var | tag) |
Sets tag for ActionNode.
tag | tag of ActionNode |
local setActionTag | ( | local | tag) |
Sets tag for ActionNode.
tag | tag of ActionNode |
void setObject | ( | Object * | node) |
Sets node which will run a action.
node | which will run a action |
var setObject | ( | var | node) |
Sets node which will run a action.
node | which will run a action |
local setObject | ( | local | 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 |
var setUnitTime | ( | var | fTime) |
Sets the time interval of frame.
fTime | the time interval of frame |
local setUnitTime | ( | local | fTime) |
Sets the time interval of frame.
fTime | the time interval of frame |
|
virtual |
Stop the action.
|
virtual |
Stop the action.
|
virtual |
Stop the action.
|
virtual |
Updates action states to some time.
fTime | the time when need to update |
|
virtual |
Updates action states to some time.
fTime | the time when need to update |
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |