cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ActionNode Class Reference

#include <CCActionNode.h>

Inheritance diagram for ActionNode:
Object

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...
 
ObjectgetObject ()
 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)
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 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 NodegetActionNode ()
virtual SpawnrefreshActionProperty ()
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
- Protected Attributes inherited from Object
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

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Constructor & Destructor Documentation

Default constructor.

var ActionNode ( )

Default constructor.

local ActionNode ( )

Default constructor.

virtual ~ActionNode ( )
virtual

Default destructor.

var ~ActionNode ( )
virtual

Default destructor.

local ~ActionNode ( )
virtual

Default destructor.

Member Function Documentation

void addFrame ( ActionFrame frame)

Pushs back a ActionFrame to ActionNode.

Parameters
framethe ActionFrame which will be added
var addFrame ( var  frame)

Pushs back a ActionFrame to ActionNode.

Parameters
framethe ActionFrame which will be added
local addFrame ( local  frame)

Pushs back a ActionFrame to ActionNode.

Parameters
framethe 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.

Parameters
framethe ActionFrame which will be removed
var deleteFrame ( var  frame)

Remove a ActionFrame from ActionNode.

Parameters
framethe ActionFrame which will be removed
local deleteFrame ( local  frame)

Remove a ActionFrame from ActionNode.

Parameters
framethe ActionFrame which will be removed
virtual void easingToFrame ( float  duration,
float  delayTime,
ActionFrame destFrame 
)
protectedvirtual
var easingToFrame ( var  duration,
var  delayTime,
var  destFrame 
)
protectedvirtual
local easingToFrame ( local  duration,
local  delayTime,
local  destFrame 
)
protectedvirtual
virtual Node* getActionNode ( )
protectedvirtual
var getActionNode ( )
protectedvirtual
local getActionNode ( )
protectedvirtual
int getActionTag ( )

Gets tag for ActionNode.

Returns
tag tag of ActionNode
var getActionTag ( )

Gets tag for ActionNode.

Returns
tag tag of ActionNode
local getActionTag ( )

Gets tag for ActionNode.

Returns
tag tag of ActionNode
int getFirstFrameIndex ( )

Gets index of first ActionFrame.

Returns
index of first ActionFrame
var getFirstFrameIndex ( )

Gets index of first ActionFrame.

Returns
index of first ActionFrame
local getFirstFrameIndex ( )

Gets index of first ActionFrame.

Returns
index of first ActionFrame
int getLastFrameIndex ( )

Gets index of last ActionFrame.

Returns
index of last ActionFrame
var getLastFrameIndex ( )

Gets index of last ActionFrame.

Returns
index of last ActionFrame
local getLastFrameIndex ( )

Gets index of last ActionFrame.

Returns
index of last ActionFrame
Object* getObject ( )

Gets node which will run a action.

Returns
node which will run a action
var getObject ( )

Gets node which will run a action.

Returns
node which will run a action
local getObject ( )

Gets node which will run a action.

Returns
node which will run a action
float getUnitTime ( )

Gets the time interval of frame.

Returns
fTime the time interval of frame
var getUnitTime ( )

Gets the time interval of frame.

Returns
fTime the time interval of frame
local getUnitTime ( )

Gets the time interval of frame.

Returns
fTime the time interval of frame
virtual void initActionNodeFromRoot ( Object root)
protectedvirtual
var initActionNodeFromRoot ( var  root)
protectedvirtual
local initActionNodeFromRoot ( local  root)
protectedvirtual
virtual void initWithDictionary ( cs::JsonDictionary dic,
Object root 
)
virtual
var initWithDictionary ( var  dic,
var  root 
)
virtual
local initWithDictionary ( local  dic,
local  root 
)
virtual
void insertFrame ( int  index,
ActionFrame frame 
)

Insets a ActionFrame to ActionNode.

Parameters
indexthe index of ActionFrame
framethe ActionFrame which will be inserted
var insertFrame ( var  index,
var  frame 
)

Insets a ActionFrame to ActionNode.

Parameters
indexthe index of ActionFrame
framethe ActionFrame which will be inserted
local insertFrame ( local  index,
local  frame 
)

Insets a ActionFrame to ActionNode.

Parameters
indexthe index of ActionFrame
framethe ActionFrame which will be inserted
virtual void playAction ( bool  bloop)
virtual

Play the action.

Parameters
blooptrue the
var playAction ( var  bloop)
virtual

Play the action.

Parameters
blooptrue the
local playAction ( local  bloop)
virtual

Play the action.

Parameters
blooptrue the
virtual Spawn*
refreshActionProperty
( )
protectedvirtual
var refreshActionProperty ( )
protectedvirtual
local refreshActionProperty ( )
protectedvirtual
virtual void runAction ( )
protectedvirtual
var runAction ( )
protectedvirtual
local runAction ( )
protectedvirtual
void setActionTag ( int  tag)

Sets tag for ActionNode.

Parameters
tagtag of ActionNode
var setActionTag ( var  tag)

Sets tag for ActionNode.

Parameters
tagtag of ActionNode
local setActionTag ( local  tag)

Sets tag for ActionNode.

Parameters
tagtag of ActionNode
void setObject ( Object node)

Sets node which will run a action.

Parameters
nodewhich will run a action
var setObject ( var  node)

Sets node which will run a action.

Parameters
nodewhich will run a action
local setObject ( local  node)

Sets node which will run a action.

Parameters
nodewhich will run a action
void setUnitTime ( float  fTime)

Sets the time interval of frame.

Parameters
fTimethe time interval of frame
var setUnitTime ( var  fTime)

Sets the time interval of frame.

Parameters
fTimethe time interval of frame
local setUnitTime ( local  fTime)

Sets the time interval of frame.

Parameters
fTimethe time interval of frame
virtual void stopAction ( )
virtual

Stop the action.

var stopAction ( )
virtual

Stop the action.

local stopAction ( )
virtual

Stop the action.

virtual bool updateActionToTimeLine ( float  fTime)
virtual

Updates action states to some time.

Parameters
fTimethe time when need to update
var updateActionToTimeLine ( var  fTime)
virtual

Updates action states to some time.

Parameters
fTimethe time when need to update
local updateActionToTimeLine ( local  fTime)
virtual

Updates action states to some time.

Parameters
fTimethe time when need to update

Member Data Documentation

Action* _action
protected
var _action
protected
local _action
protected
Spawn* _actionSpawn
protected
var _actionSpawn
protected
local _actionSpawn
protected
int _actionTag
protected
var _actionTag
protected
local _actionTag
protected
int _currentFrameIndex
protected
var _currentFrameIndex
protected
local _currentFrameIndex
protected
int _destFrameIndex
protected
var _destFrameIndex
protected
local _destFrameIndex
protected
Array* _frameArray
protected
var _frameArray
protected
local _frameArray
protected
int _frameArrayNum
protected
var _frameArrayNum
protected
local _frameArrayNum
protected
float _fUnitTime
protected
var _fUnitTime
protected
local _fUnitTime
protected
Object* _object
protected
var _object
protected
local _object
protected

The documentation for this class was generated from the following file: