Class cc.FiniteTimeAction
- Defined in: CCAction.js
- Extends cc.Action
Constructor Attributes | Constructor Name and Description |
---|---|
Base class actions that do have a finite time duration.
|
Method Summary
Class Detail
cc.FiniteTimeAction()
Base class actions that do have a finite time duration.
Possible actions:
- An action with a duration of 0 seconds.
- An action with a duration of 35.5 seconds. Infinite time actions are valid
Possible actions:
- An action with a duration of 0 seconds.
- An action with a duration of 35.5 seconds. Infinite time actions are valid
Method Detail
-
{cc.FiniteTimeAction} clone()to copy object with deep copy. returns a clone of action.
- Returns:
- {cc.FiniteTimeAction}
-
ctor()Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
-
{Number} getDuration()get duration of the action. (seconds)
- Returns:
- {Number}
-
{Null} reverse()Returns a reversed action.
For example:
- The action will be x coordinates of 0 move to 100.
- The reversed action will be x of 100 move to 0. - Will be rewritten- Returns:
- {Null}
-
setDuration(duration)set duration of the action. (seconds)
- Parameters:
- {Number} duration