Action Class
Defined in: https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:34
Module: cc
Base class cc.Action for action classes.
Index
Properties
TAG_INVALIDNumberDefault Action tag.
Methods
cloneto copy object with deep copy. returns a clone of action.isDonereturn true if the action has finished.getTargetget the target.setTargetThe action will modify the target properties.getOriginalTargetget the original target.getTagget tag number.setTagset tag number.
Details
Properties
TAG_INVALID
Default Action tag.
| meta | description |
|---|---|
| Type | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:167 |
Methods
clone
to copy object with deep copy. returns a clone of action.
| meta | description |
|---|---|
| Returns | Action |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:49 |
isDone
return true if the action has finished.
| meta | description |
|---|---|
| Returns | Boolean |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:65 |
getTarget
get the target.
| meta | description |
|---|---|
| Returns | Node |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:97 |
setTarget
The action will modify the target properties.
| meta | description |
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:107 |
Parameters
targetNode
getOriginalTarget
get the original target.
| meta | description |
|---|---|
| Returns | Node |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:117 |
getTag
get tag number.
| meta | description |
|---|---|
| Returns | Number |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:134 |
setTag
set tag number.
| meta | description |
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/actions/CCAction.js:144 |
Parameters
tagNumber