mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
move actions back to cc module.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/** Default Action tag
|
||||
@@ -234,7 +234,7 @@ cc.FiniteTimeAction = cc.Action.extend({
|
||||
});
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -355,7 +355,7 @@ cc.Speed = cc.Action.extend({
|
||||
*
|
||||
* @warning This action can't be Sequenceable because it is not an cc.IntervalAction
|
||||
*
|
||||
* @method cc.speed
|
||||
* @method speed
|
||||
* @param {ActionInterval} action
|
||||
* @param {Number} speed
|
||||
* @return {Speed}
|
||||
@@ -545,7 +545,7 @@ cc.Follow = cc.Action.extend({
|
||||
/**
|
||||
* Create a follow action which makes its target follows another node.
|
||||
*
|
||||
* @method
|
||||
* @method follow
|
||||
* @param {Node} followedNode
|
||||
* @param {Rect} rect
|
||||
* @return {Follow|Null} returns the cc.Follow object on success
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -267,7 +267,7 @@ cc.CardinalSplineTo = cc.ActionInterval.extend({
|
||||
/**
|
||||
* creates an action with a Cardinal Spline array of points and tension.
|
||||
*
|
||||
* @method cc.cardinalSplineTo
|
||||
* @method cardinalSplineTo
|
||||
* @param {Number} duration
|
||||
* @param {Array} points array of control points
|
||||
* @param {Number} tension
|
||||
@@ -378,7 +378,7 @@ cc.CardinalSplineBy = cc.CardinalSplineTo.extend({
|
||||
/**
|
||||
* creates an action with a Cardinal Spline array of points and tension.
|
||||
*
|
||||
* @method cc.cardinalSplineBy
|
||||
* @method cardinalSplineBy
|
||||
* @param {Number} duration
|
||||
* @param {Array} points
|
||||
* @param {Number} tension
|
||||
@@ -430,7 +430,7 @@ cc.CatmullRomTo = cc.CardinalSplineTo.extend({
|
||||
/**
|
||||
* creates an action with a Cardinal Spline array of points and tension.
|
||||
*
|
||||
* @method cc.catmullRomTo
|
||||
* @method catmullRomTo
|
||||
* @param {Number} dt
|
||||
* @param {Array} points
|
||||
* @return {CatmullRomTo}
|
||||
@@ -484,7 +484,7 @@ cc.CatmullRomBy = cc.CardinalSplineBy.extend({
|
||||
|
||||
/**
|
||||
* Creates an action with a Cardinal Spline array of points and tension
|
||||
* @method cc.catmullRomBy
|
||||
* @method catmullRomBy
|
||||
* @param {Number} dt
|
||||
* @param {Array} points
|
||||
* @return {CatmullRomBy}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -163,7 +163,7 @@ cc.easeRateAction = function (action, rate) {
|
||||
cc.EaseRateAction.create = cc.easeRateAction;
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -205,7 +205,7 @@ cc.EaseIn.create = function (action, rate) {
|
||||
* Creates the action easing object with the rate parameter. <br />
|
||||
* From slow to fast.
|
||||
*
|
||||
* @method cc.easeIn
|
||||
* @method easeIn
|
||||
* @param {Number} rate
|
||||
* @return {Object}
|
||||
* @example
|
||||
@@ -262,7 +262,7 @@ cc.EaseOut.create = function (action, rate) {
|
||||
* Creates the action easing object with the rate parameter. <br />
|
||||
* From fast to slow.
|
||||
*
|
||||
* @method cc.easeOut
|
||||
* @method easeOut
|
||||
* @param {Number} rate
|
||||
* @return {Object}
|
||||
* @example
|
||||
@@ -322,7 +322,7 @@ cc.EaseInOut.create = function (action, rate) {
|
||||
/**
|
||||
* Creates the action easing object with the rate parameter. <br />
|
||||
* Slow to fast then to slow.
|
||||
* @method cc.easeInOut
|
||||
* @method easeInOut
|
||||
* @param {Number} rate
|
||||
* @return {Object}
|
||||
*
|
||||
@@ -394,7 +394,7 @@ cc._easeExponentialInObj = {
|
||||
* Creates the action easing object with the rate parameter. <br />
|
||||
* Reference easeInExpo: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeExponentialIn
|
||||
* @method easeExponentialIn
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -452,7 +452,7 @@ cc._easeExponentialOutObj = {
|
||||
* creates the action easing object. <br />
|
||||
* Reference easeOutExpo: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeExponentialOut
|
||||
* @method easeExponentialOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -525,7 +525,7 @@ cc._easeExponentialInOutObj = {
|
||||
* creates an EaseExponentialInOut action easing object. <br />
|
||||
* Reference easeInOutExpo: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeExponentialInOut
|
||||
* @method easeExponentialInOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -583,7 +583,7 @@ cc._easeSineInObj = {
|
||||
* creates an EaseSineIn action. <br />
|
||||
* Reference easeInSine: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeSineIn
|
||||
* @method easeSineIn
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -642,7 +642,7 @@ cc._easeSineOutObj = {
|
||||
* Creates an EaseSineOut action easing object. <br />
|
||||
* Reference easeOutSine: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeSineOut
|
||||
* @method easeSineOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -701,7 +701,7 @@ cc._easeSineInOutObj = {
|
||||
* creates the action easing object. <br />
|
||||
* Reference easeInOutSine: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeSineInOut
|
||||
* @method easeSineInOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -772,7 +772,7 @@ cc.EaseElastic.create = function (action, period) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -836,7 +836,7 @@ cc._easeElasticInObj = {
|
||||
* Creates the action easing obejct with the period in radians (default is 0.3). <br />
|
||||
* Reference easeInElastic: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeElasticIn
|
||||
* @method easeElasticIn
|
||||
* @param {Number} [period=0.3]
|
||||
* @return {Object}
|
||||
* @example
|
||||
@@ -918,7 +918,7 @@ cc._easeElasticOutObj = {
|
||||
* Creates the action easing object with the period in radians (default is 0.3). <br />
|
||||
* Reference easeOutElastic: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeElasticOut
|
||||
* @method easeElasticOut
|
||||
* @param {Number} [period=0.3]
|
||||
* @return {Object}
|
||||
* @example
|
||||
@@ -996,7 +996,7 @@ cc.EaseElasticInOut.create = function (action, period) {
|
||||
* Creates the action easing object with the period in radians (default is 0.3). <br />
|
||||
* Reference easeInOutElastic: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeElasticInOut
|
||||
* @method easeElasticInOut
|
||||
* @param {Number} [period=0.3]
|
||||
* @return {Object}
|
||||
* @example
|
||||
@@ -1073,7 +1073,7 @@ cc.EaseBounce.create = function (action) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -1139,7 +1139,7 @@ cc._easeBounceInObj = {
|
||||
/**
|
||||
* Creates the action easing object. <br />
|
||||
* Eased bounce effect at the beginning.
|
||||
* @method cc.easeBounceIn
|
||||
* @method easeBounceIn
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -1197,7 +1197,7 @@ cc._easeBounceOutObj = {
|
||||
/**
|
||||
* Creates the action easing object. <br />
|
||||
* Eased bounce effect at the ending.
|
||||
* @method cc.easeBounceOut
|
||||
* @method easeBounceOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -1268,7 +1268,7 @@ cc._easeBounceInOutObj = {
|
||||
/**
|
||||
* Creates the action easing object. <br />
|
||||
* Eased bounce effect at the begining and ending.
|
||||
* @method cc.easeBounceInOut
|
||||
* @method easeBounceInOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -1328,7 +1328,7 @@ cc._easeBackInObj = {
|
||||
/**
|
||||
* Creates the action easing object. <br />
|
||||
* In the opposite direction to move slowly, and then accelerated to the right direction.
|
||||
* @method cc.easeBackIn
|
||||
* @method easeBackIn
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -1389,7 +1389,7 @@ cc._easeBackOutObj = {
|
||||
/**
|
||||
* Creates the action easing object. <br />
|
||||
* Fast moving more than the finish, and then slowly back to the finish.
|
||||
* @method cc.easeBackOut
|
||||
* @method easeBackOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -1460,7 +1460,7 @@ cc._easeBackInOutObj = {
|
||||
/**
|
||||
* Creates the action easing object. <br />
|
||||
* Begining of cc.EaseBackIn. Ending of cc.EaseBackOut.
|
||||
* @method cc.easeBackInOut
|
||||
* @method easeBackInOut
|
||||
* @return {Object}
|
||||
* @example
|
||||
* // example
|
||||
@@ -1548,7 +1548,7 @@ cc.EaseBezierAction.create = function(action){
|
||||
* Creates the action easing object. <br />
|
||||
* Into the 4 reference point. <br />
|
||||
* To calculate the motion curve.
|
||||
* @method cc.easeBezierAction
|
||||
* @method easeBezierAction
|
||||
* @param {Number} p0 The first bezier parameter
|
||||
* @param {Number} p1 The second bezier parameter
|
||||
* @param {Number} p2 The third bezier parameter
|
||||
@@ -1621,7 +1621,7 @@ cc._easeQuadraticActionIn = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInQuad: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuadraticActionIn
|
||||
* @method easeQuadraticActionIn
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -1681,7 +1681,7 @@ cc._easeQuadraticActionOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeOutQuad: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuadraticActionOut
|
||||
* @method easeQuadraticActionOut
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -1749,7 +1749,7 @@ cc._easeQuadraticActionInOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInOutQuad: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuadraticActionInOut
|
||||
* @method easeQuadraticActionInOut
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -1808,7 +1808,7 @@ cc._easeQuarticActionIn = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeIntQuart: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuarticActionIn
|
||||
* @method easeQuarticActionIn
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -1869,7 +1869,7 @@ cc._easeQuarticActionOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeOutQuart: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuarticActionOut
|
||||
* @method easeQuarticActionOut
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -1932,7 +1932,7 @@ cc._easeQuarticActionInOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInOutQuart: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuarticActionInOut
|
||||
* @method easeQuarticActionInOut
|
||||
* @returns {Object}
|
||||
*/
|
||||
cc.easeQuarticActionInOut = function(){
|
||||
@@ -1989,7 +1989,7 @@ cc._easeQuinticActionIn = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInQuint: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuinticActionIn
|
||||
* @method easeQuinticActionIn
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -2050,7 +2050,7 @@ cc._easeQuinticActionOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeOutQuint: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuinticActionOut
|
||||
* @method easeQuinticActionOut
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -2114,7 +2114,7 @@ cc._easeQuinticActionInOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInOutQuint: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeQuinticActionInOut
|
||||
* @method easeQuinticActionInOut
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -2174,7 +2174,7 @@ cc._easeCircleActionIn = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInCirc: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeCircleActionIn
|
||||
* @method easeCircleActionIn
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -2235,7 +2235,7 @@ cc._easeCircleActionOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeOutCirc: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeCircleActionOut
|
||||
* @method easeCircleActionOut
|
||||
* @returns {Object}
|
||||
* @exampple
|
||||
* //example
|
||||
@@ -2299,7 +2299,7 @@ cc._easeCircleActionInOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInOutCirc: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeCircleActionInOut
|
||||
* @method easeCircleActionInOut
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -2359,7 +2359,7 @@ cc._easeCubicActionIn = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInCubic: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeCubicActionIn
|
||||
* @method easeCubicActionIn
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -2420,7 +2420,7 @@ cc._easeCubicActionOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeOutCubic: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeCubicActionOut
|
||||
* @method easeCubicActionOut
|
||||
* @returns {Object}
|
||||
* @example
|
||||
* //example
|
||||
@@ -2484,7 +2484,7 @@ cc._easeCubicActionInOut = {
|
||||
* Creates the action easing object. <br />
|
||||
* Reference easeInOutCubic: <br />
|
||||
* http://www.zhihu.com/question/21981571/answer/19925418
|
||||
* @method cc.easeCubicActionInOut
|
||||
* @method easeCubicActionInOut
|
||||
* @returns {Object}
|
||||
*/
|
||||
cc.easeCubicActionInOut = function(){
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ cc.ActionInstant = cc.FiniteTimeAction.extend({
|
||||
});
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -88,7 +88,7 @@ cc.Show = cc.ActionInstant.extend({
|
||||
|
||||
/**
|
||||
* Show the Node.
|
||||
* @method cc.show
|
||||
* @method show
|
||||
* @return {Show}
|
||||
* @example
|
||||
* // example
|
||||
@@ -122,7 +122,7 @@ cc.Hide = cc.ActionInstant.extend({
|
||||
|
||||
/**
|
||||
* Hide the node.
|
||||
* @method cc.hide
|
||||
* @method hide
|
||||
* @return {Hide}
|
||||
* @example
|
||||
* // example
|
||||
@@ -156,7 +156,7 @@ cc.ToggleVisibility = cc.ActionInstant.extend({
|
||||
|
||||
/**
|
||||
* Toggles the visibility of a node.
|
||||
* @method cc.toggleVisibility
|
||||
* @method toggleVisibility
|
||||
* @return {ToggleVisibility}
|
||||
* @example
|
||||
* // example
|
||||
@@ -208,7 +208,7 @@ cc.RemoveSelf = cc.ActionInstant.extend({
|
||||
/**
|
||||
* Create a RemoveSelf object with a flag indicate whether the target should be cleaned up while removing.
|
||||
*
|
||||
* @method cc.removeSelf
|
||||
* @method removeSelf
|
||||
* @param {Boolean} [isNeedCleanUp=true]
|
||||
* @return {RemoveSelf}
|
||||
*
|
||||
@@ -268,7 +268,7 @@ cc.FlipX = cc.ActionInstant.extend({
|
||||
/**
|
||||
* Create a FlipX action to flip or unflip the target.
|
||||
*
|
||||
* @method cc.flipX
|
||||
* @method flipX
|
||||
* @param {Boolean} flip Indicate whether the target should be flipped or not
|
||||
* @return {FlipX}
|
||||
* @example
|
||||
@@ -326,7 +326,7 @@ cc.FlipY = cc.ActionInstant.extend({
|
||||
/**
|
||||
* Create a FlipY action to flip or unflip the target.
|
||||
*
|
||||
* @method cc.flipY
|
||||
* @method flipY
|
||||
* @param {Boolean} flip
|
||||
* @return {FlipY}
|
||||
* @example
|
||||
@@ -391,7 +391,7 @@ cc.Place = cc.ActionInstant.extend({
|
||||
|
||||
/**
|
||||
* Creates a Place action with a position.
|
||||
* @method cc.place
|
||||
* @method place
|
||||
* @param {Vec2|Number} pos
|
||||
* @param {Number} [y]
|
||||
* @return {Place}
|
||||
@@ -502,7 +502,7 @@ cc.CallFunc = cc.ActionInstant.extend({
|
||||
|
||||
/**
|
||||
* Creates the action with the callback
|
||||
* @method cc.callFunc
|
||||
* @method callFunc
|
||||
* @param {function} selector
|
||||
* @param {object|null} [selectorTarget]
|
||||
* @param {*|null} [data] data for function, it accepts all data types.
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -279,7 +279,7 @@ cc.actionInterval = function (d) {
|
||||
cc.ActionInterval.create = cc.actionInterval;
|
||||
|
||||
/**
|
||||
* @module actions
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -418,7 +418,7 @@ cc.Sequence = cc.ActionInterval.extend({
|
||||
/**
|
||||
* Helper constructor to create an array of sequenceable actions
|
||||
* The created action will run actions sequentially, one after another.
|
||||
* @method cc.sequence
|
||||
* @method sequence
|
||||
* @param {Array|FiniteTimeAction} tempArray
|
||||
* @return {Sequence}
|
||||
* @example
|
||||
@@ -595,7 +595,7 @@ cc.Repeat = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Creates a Repeat action. Times is an unsigned integer between 1 and pow(2,30)
|
||||
* @method cc.repeat
|
||||
* @method repeat
|
||||
* @param {FiniteTimeAction} action
|
||||
* @param {Number} times
|
||||
* @return {Repeat}
|
||||
@@ -699,7 +699,7 @@ cc.RepeatForever = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Create a acton which repeat forever
|
||||
* @method cc.repeatForever
|
||||
* @method repeatForever
|
||||
* @param {FiniteTimeAction} action
|
||||
* @return {RepeatForever}
|
||||
* @example
|
||||
@@ -810,7 +810,7 @@ cc.Spawn = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Create a spawn action which runs several actions in parallel.
|
||||
* @method cc.spawn
|
||||
* @method spawn
|
||||
* @param {Array|FiniteTimeAction}tempArray
|
||||
* @return {FiniteTimeAction}
|
||||
* @example
|
||||
@@ -928,7 +928,7 @@ cc.RotateTo = cc.ActionInterval.extend({
|
||||
/**
|
||||
* Rotates a Node object to a certain angle by modifying its rotation property. <br/>
|
||||
* The direction will be decided by the shortest angle.
|
||||
* @method cc.rotateTo
|
||||
* @method rotateTo
|
||||
* @param {Number} duration duration in seconds
|
||||
* @param {Number} deltaAngleX deltaAngleX in degrees.
|
||||
* @param {Number} [deltaAngleY] deltaAngleY in degrees.
|
||||
@@ -1015,7 +1015,7 @@ cc.RotateBy = cc.ActionInterval.extend({
|
||||
/**
|
||||
* Rotates a Node object clockwise a number of degrees by modifying its rotation property.
|
||||
* Relative to its properties to modify.
|
||||
* @method cc.rotateBy
|
||||
* @method rotateBy
|
||||
* @param {Number} duration duration in seconds
|
||||
* @param {Number} deltaAngleX deltaAngleX in degrees
|
||||
* @param {Number} [deltaAngleY] deltaAngleY in degrees
|
||||
@@ -1136,7 +1136,7 @@ cc.MoveBy = cc.ActionInterval.extend({
|
||||
* x and y are relative to the position of the object. <br/>
|
||||
* Several MoveBy actions can be concurrently called, and the resulting <br/>
|
||||
* movement will be the sum of individual movements.
|
||||
* @method cc.moveBy
|
||||
* @method moveBy
|
||||
* @param {Number} duration duration in seconds
|
||||
* @param {Vec2|Number} deltaPos
|
||||
* @param {Number} deltaY
|
||||
@@ -1213,7 +1213,7 @@ cc.MoveTo = cc.MoveBy.extend({
|
||||
* Moves a Node object to the position x,y. x and y are absolute coordinates by modifying its position property. <br/>
|
||||
* Several MoveTo actions can be concurrently called, and the resulting <br/>
|
||||
* movement will be the sum of individual movements.
|
||||
* @method cc.moveTo
|
||||
* @method moveTo
|
||||
* @param {Number} duration duration in seconds
|
||||
* @param {Vec2} position
|
||||
* @param {Number} y
|
||||
@@ -1306,7 +1306,7 @@ cc.SkewTo = cc.ActionInterval.extend({
|
||||
/**
|
||||
* Create a action which skews a Node object to given angles by modifying its skewX and skewY properties.
|
||||
* Changes to the specified value.
|
||||
* @method cc.skewTo
|
||||
* @method skewTo
|
||||
* @param {Number} t time in seconds
|
||||
* @param {Number} sx
|
||||
* @param {Number} sy
|
||||
@@ -1380,7 +1380,7 @@ cc.SkewBy = cc.SkewTo.extend({
|
||||
/**
|
||||
* Skews a Node object by skewX and skewY degrees. <br />
|
||||
* Relative to its property modification.
|
||||
* @method cc.skewBy
|
||||
* @method skewBy
|
||||
* @param {Number} t time in seconds
|
||||
* @param {Number} sx sx skew in degrees for X axis
|
||||
* @param {Number} sy sy skew in degrees for Y axis
|
||||
@@ -1508,7 +1508,7 @@ cc.JumpBy = cc.ActionInterval.extend({
|
||||
/**
|
||||
* Moves a Node object simulating a parabolic jump movement by modifying it's position property.
|
||||
* Relative to its movement.
|
||||
* @method cc.jumpBy
|
||||
* @method jumpBy
|
||||
* @param {Number} duration
|
||||
* @param {Vec2|Number} position
|
||||
* @param {Number} [y]
|
||||
@@ -1590,7 +1590,7 @@ cc.JumpTo = cc.JumpBy.extend({
|
||||
/**
|
||||
* Moves a Node object to a parabolic position simulating a jump movement by modifying its position property. <br />
|
||||
* Jump to the specified location.
|
||||
* @method cc.jumpTo
|
||||
* @method jumpTo
|
||||
* @param {Number} duration
|
||||
* @param {Vec2|Number} position
|
||||
* @param {Number} [y]
|
||||
@@ -1609,7 +1609,7 @@ cc.jumpTo = function (duration, position, y, height, jumps) {
|
||||
cc.JumpTo.create = cc.jumpTo;
|
||||
|
||||
/*
|
||||
* @method cc.bezierAt
|
||||
* @method bezierAt
|
||||
* @param {Number} a
|
||||
* @param {Number} b
|
||||
* @param {Number} c
|
||||
@@ -1736,7 +1736,7 @@ cc.BezierBy = cc.ActionInterval.extend({
|
||||
/**
|
||||
* An action that moves the target with a cubic Bezier curve by a certain distance.
|
||||
* Relative to its movement.
|
||||
* @method cc.bezierBy
|
||||
* @method bezierBy
|
||||
* @param {Number} t time in seconds
|
||||
* @param {Array} c Array of points
|
||||
* @return {BezierBy}
|
||||
@@ -1803,7 +1803,7 @@ cc.BezierTo = cc.BezierBy.extend({
|
||||
});
|
||||
/**
|
||||
* An action that moves the target with a cubic Bezier curve to a destination point.
|
||||
* @method cc.bezierTo
|
||||
* @method bezierTo
|
||||
* @param {Number} t
|
||||
* @param {Array} c array of points
|
||||
* @return {BezierTo}
|
||||
@@ -1888,7 +1888,7 @@ cc.ScaleTo = cc.ActionInterval.extend({
|
||||
});
|
||||
/**
|
||||
* Scales a Node object to a zoom factor by modifying it's scale property.
|
||||
* @method cc.scaleTo
|
||||
* @method scaleTo
|
||||
* @param {Number} duration
|
||||
* @param {Number} sx scale parameter in X
|
||||
* @param {Number} [sy] scale parameter in Y, if Null equal to sx
|
||||
@@ -1936,7 +1936,7 @@ cc.ScaleBy = cc.ScaleTo.extend({
|
||||
/**
|
||||
* Scales a Node object a zoom factor by modifying it's scale property.
|
||||
* Relative to its changes.
|
||||
* @method cc.scaleBy
|
||||
* @method scaleBy
|
||||
* @param {Number} duration duration in seconds
|
||||
* @param {Number} sx sx scale parameter in X
|
||||
* @param {Number|Null} [sy=] sy scale parameter in Y, if Null equal to sx
|
||||
@@ -2019,7 +2019,7 @@ cc.Blink = cc.ActionInterval.extend({
|
||||
});
|
||||
/**
|
||||
* Blinks a Node object by modifying it's visible property.
|
||||
* @method cc.blink
|
||||
* @method blink
|
||||
* @param {Number} duration duration in seconds
|
||||
* @param blinks blinks in times
|
||||
* @return {Blink}
|
||||
@@ -2085,7 +2085,7 @@ cc.FadeTo = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Fades an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from the current value to a custom one.
|
||||
* @method cc.fadeTo
|
||||
* @method fadeTo
|
||||
* @param {Number} duration
|
||||
* @param {Number} opacity 0-255, 0 is transparent
|
||||
* @return {FadeTo}
|
||||
@@ -2138,7 +2138,7 @@ cc.FadeIn = cc.FadeTo.extend({
|
||||
|
||||
/**
|
||||
* Fades In an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 0 to 255.
|
||||
* @method cc.fadeIn
|
||||
* @method fadeIn
|
||||
* @param {Number} duration duration in seconds
|
||||
* @return {FadeIn}
|
||||
* @example
|
||||
@@ -2185,7 +2185,7 @@ cc.FadeOut = cc.FadeTo.extend({
|
||||
|
||||
/**
|
||||
* Fades Out an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 255 to 0.
|
||||
* @method cc.fadeOut
|
||||
* @method fadeOut
|
||||
* @param {Number} d duration in seconds
|
||||
* @return {FadeOut}
|
||||
* @example
|
||||
@@ -2266,7 +2266,7 @@ cc.TintTo = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.
|
||||
* @method cc.tintTo
|
||||
* @method tintTo
|
||||
* @param {Number} duration
|
||||
* @param {Number} red 0-255
|
||||
* @param {Number} green 0-255
|
||||
@@ -2360,7 +2360,7 @@ cc.TintBy = cc.ActionInterval.extend({
|
||||
/**
|
||||
* Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.
|
||||
* Relative to their own color change.
|
||||
* @method cc.tintBy
|
||||
* @method tintBy
|
||||
* @param {Number} duration duration in seconds
|
||||
* @param {Number} deltaRed
|
||||
* @param {Number} deltaGreen
|
||||
@@ -2399,7 +2399,7 @@ cc.DelayTime = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Delays the action a certain amount of seconds
|
||||
* @method cc.delayTime
|
||||
* @method delayTime
|
||||
* @param {Number} d duration in seconds
|
||||
* @return {DelayTime}
|
||||
* @example
|
||||
@@ -2482,7 +2482,7 @@ cc.ReverseTime = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Executes an action in reverse order, from time=duration to time=0.
|
||||
* @method cc.reverseTime
|
||||
* @method reverseTime
|
||||
* @param {FiniteTimeAction} action
|
||||
* @return {ReverseTime}
|
||||
* @example
|
||||
@@ -2651,7 +2651,7 @@ cc.Animate = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* create the animate with animation
|
||||
* @method cc.animate
|
||||
* @method animate
|
||||
* @param {SpriteFrameAnimation} animation
|
||||
* @return {Animate}
|
||||
* @example
|
||||
@@ -2739,7 +2739,7 @@ cc.TargetedAction = cc.ActionInterval.extend({
|
||||
|
||||
/**
|
||||
* Create an action with the specified action and forced target
|
||||
* @method cc.targetedAction
|
||||
* @method targetedAction
|
||||
* @param {Node} target
|
||||
* @param {FiniteTimeAction} action
|
||||
* @return {TargetedAction}
|
||||
|
||||
Reference in New Issue
Block a user