Action
Class
Module: cc
Base class cc.Action for action classes.
Index
Properties
TAG_INVALID
Number
Default Action tag.
Methods
clone
to copy object with deep copy.isDone
return true if the action has finished.getTarget
get the target.setTarget
The action will modify the target properties.getOriginalTarget
get the original target.getTag
get tag number.setTag
set tag number.
Details
Properties
TAG_INVALID
Default Action tag.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/actions/CCAction.js:168 |
Methods
clone
to copy object with deep copy. returns a clone of action.
meta | description |
---|---|
Returns | Action |
Defined in | cocos2d/actions/CCAction.js:50 |
isDone
return true if the action has finished.
meta | description |
---|---|
Returns | Boolean |
Defined in | cocos2d/actions/CCAction.js:66 |
getTarget
get the target.
meta | description |
---|---|
Returns | Node |
Defined in | cocos2d/actions/CCAction.js:98 |
setTarget
The action will modify the target properties.
meta | description |
---|---|
Defined in | cocos2d/actions/CCAction.js:108 |
Parameters
target
Node
getOriginalTarget
get the original target.
meta | description |
---|---|
Returns | Node |
Defined in | cocos2d/actions/CCAction.js:118 |
getTag
get tag number.
meta | description |
---|---|
Returns | Number |
Defined in | cocos2d/actions/CCAction.js:135 |
setTag
set tag number.
meta | description |
---|---|
Defined in | cocos2d/actions/CCAction.js:145 |
Parameters
tag
Number