mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6048 from pandamicro/ConstructorAccess2
Issue #3897: Add missed constructors
This commit is contained in:
commit
15e584a83c
|
@ -129,6 +129,23 @@ void ActionCamera::updateTransform()
|
||||||
// OrbitCamera
|
// OrbitCamera
|
||||||
//
|
//
|
||||||
|
|
||||||
|
OrbitCamera::OrbitCamera()
|
||||||
|
: _radius(0.0)
|
||||||
|
, _deltaRadius(0.0)
|
||||||
|
, _angleZ(0.0)
|
||||||
|
, _deltaAngleZ(0.0)
|
||||||
|
, _angleX(0.0)
|
||||||
|
, _deltaAngleX(0.0)
|
||||||
|
, _radZ(0.0)
|
||||||
|
, _radDeltaZ(0.0)
|
||||||
|
, _radX(0.0)
|
||||||
|
, _radDeltaX(0.0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
OrbitCamera::~OrbitCamera()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
OrbitCamera * OrbitCamera::create(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX)
|
OrbitCamera * OrbitCamera::create(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX)
|
||||||
{
|
{
|
||||||
OrbitCamera * obitCamera = new OrbitCamera();
|
OrbitCamera * obitCamera = new OrbitCamera();
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
* @js NA
|
* @js NA
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~ActionCamera(){}
|
virtual ~ActionCamera(){};
|
||||||
|
|
||||||
// Overrides
|
// Overrides
|
||||||
virtual void startWithTarget(Node *target) override;
|
virtual void startWithTarget(Node *target) override;
|
||||||
|
@ -96,29 +96,7 @@ class CC_DLL OrbitCamera : public ActionCamera //<NSCopying>
|
||||||
public:
|
public:
|
||||||
/** creates a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
|
/** creates a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
|
||||||
static OrbitCamera* create(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX);
|
static OrbitCamera* create(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX);
|
||||||
/**
|
|
||||||
* @js ctor
|
|
||||||
*/
|
|
||||||
OrbitCamera()
|
|
||||||
: _radius(0.0)
|
|
||||||
, _deltaRadius(0.0)
|
|
||||||
, _angleZ(0.0)
|
|
||||||
, _deltaAngleZ(0.0)
|
|
||||||
, _angleX(0.0)
|
|
||||||
, _deltaAngleX(0.0)
|
|
||||||
, _radZ(0.0)
|
|
||||||
, _radDeltaZ(0.0)
|
|
||||||
, _radX(0.0)
|
|
||||||
, _radDeltaX(0.0)
|
|
||||||
{}
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual ~OrbitCamera(){}
|
|
||||||
|
|
||||||
/** initializes a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
|
|
||||||
bool initWithDuration(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX);
|
|
||||||
/** positions the camera according to spherical coordinates */
|
/** positions the camera according to spherical coordinates */
|
||||||
void sphericalRadius(float *r, float *zenith, float *azimuth);
|
void sphericalRadius(float *r, float *zenith, float *azimuth);
|
||||||
|
|
||||||
|
@ -127,6 +105,20 @@ public:
|
||||||
virtual void startWithTarget(Node *target) override;
|
virtual void startWithTarget(Node *target) override;
|
||||||
virtual void update(float time) override;
|
virtual void update(float time) override;
|
||||||
|
|
||||||
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
|
OrbitCamera();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
|
virtual ~OrbitCamera();
|
||||||
|
|
||||||
|
/** initializes a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
|
||||||
|
bool initWithDuration(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
float _radius;
|
float _radius;
|
||||||
float _deltaRadius;
|
float _deltaRadius;
|
||||||
|
|
|
@ -55,12 +55,13 @@ public:
|
||||||
virtual void stop() override;
|
virtual void stop() override;
|
||||||
virtual void update(float time) override;
|
virtual void update(float time) override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
ActionEase() {}
|
ActionEase() {}
|
||||||
virtual ~ActionEase();
|
virtual ~ActionEase();
|
||||||
/** initializes the action */
|
/** initializes the action */
|
||||||
bool initWithAction(ActionInterval *action);
|
bool initWithAction(ActionInterval *action);
|
||||||
|
|
||||||
|
protected:
|
||||||
/** The inner action */
|
/** The inner action */
|
||||||
ActionInterval *_inner;
|
ActionInterval *_inner;
|
||||||
private:
|
private:
|
||||||
|
@ -85,12 +86,13 @@ public:
|
||||||
virtual EaseRateAction* clone() const override = 0;
|
virtual EaseRateAction* clone() const override = 0;
|
||||||
virtual EaseRateAction* reverse() const override = 0;
|
virtual EaseRateAction* reverse() const override = 0;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseRateAction() {}
|
EaseRateAction() {}
|
||||||
virtual ~EaseRateAction();
|
virtual ~EaseRateAction();
|
||||||
/** Initializes the action with the inner action and the rate parameter */
|
/** Initializes the action with the inner action and the rate parameter */
|
||||||
bool initWithAction(ActionInterval *pAction, float fRate);
|
bool initWithAction(ActionInterval *pAction, float fRate);
|
||||||
|
|
||||||
|
protected:
|
||||||
float _rate;
|
float _rate;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -112,7 +114,7 @@ public:
|
||||||
virtual EaseIn* clone() const override;
|
virtual EaseIn* clone() const override;
|
||||||
virtual EaseIn* reverse() const override;
|
virtual EaseIn* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseIn() {}
|
EaseIn() {}
|
||||||
virtual ~EaseIn() {}
|
virtual ~EaseIn() {}
|
||||||
|
|
||||||
|
@ -135,7 +137,7 @@ public:
|
||||||
virtual EaseOut* clone() const override;
|
virtual EaseOut* clone() const override;
|
||||||
virtual EaseOut* reverse() const override;
|
virtual EaseOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseOut() {}
|
EaseOut() {}
|
||||||
virtual ~EaseOut() {}
|
virtual ~EaseOut() {}
|
||||||
|
|
||||||
|
@ -158,7 +160,7 @@ public:
|
||||||
virtual EaseInOut* clone() const override;
|
virtual EaseInOut* clone() const override;
|
||||||
virtual EaseInOut* reverse() const override;
|
virtual EaseInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseInOut() {}
|
EaseInOut() {}
|
||||||
virtual ~EaseInOut() {}
|
virtual ~EaseInOut() {}
|
||||||
|
|
||||||
|
@ -181,7 +183,7 @@ public:
|
||||||
virtual EaseExponentialIn* clone() const override;
|
virtual EaseExponentialIn* clone() const override;
|
||||||
virtual ActionEase* reverse() const override;
|
virtual ActionEase* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseExponentialIn() {}
|
EaseExponentialIn() {}
|
||||||
virtual ~EaseExponentialIn() {}
|
virtual ~EaseExponentialIn() {}
|
||||||
|
|
||||||
|
@ -204,7 +206,7 @@ public:
|
||||||
virtual EaseExponentialOut* clone() const override;
|
virtual EaseExponentialOut* clone() const override;
|
||||||
virtual ActionEase* reverse() const override;
|
virtual ActionEase* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseExponentialOut() {}
|
EaseExponentialOut() {}
|
||||||
virtual ~EaseExponentialOut() {}
|
virtual ~EaseExponentialOut() {}
|
||||||
|
|
||||||
|
@ -227,7 +229,7 @@ public:
|
||||||
virtual EaseExponentialInOut* clone() const override;
|
virtual EaseExponentialInOut* clone() const override;
|
||||||
virtual EaseExponentialInOut* reverse() const override;
|
virtual EaseExponentialInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseExponentialInOut() {}
|
EaseExponentialInOut() {}
|
||||||
virtual ~EaseExponentialInOut() {}
|
virtual ~EaseExponentialInOut() {}
|
||||||
|
|
||||||
|
@ -250,7 +252,7 @@ public:
|
||||||
virtual EaseSineIn* clone() const override;
|
virtual EaseSineIn* clone() const override;
|
||||||
virtual ActionEase* reverse() const override;
|
virtual ActionEase* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseSineIn() {}
|
EaseSineIn() {}
|
||||||
virtual ~EaseSineIn() {}
|
virtual ~EaseSineIn() {}
|
||||||
|
|
||||||
|
@ -273,7 +275,7 @@ public:
|
||||||
virtual EaseSineOut* clone() const override;
|
virtual EaseSineOut* clone() const override;
|
||||||
virtual ActionEase* reverse() const override;
|
virtual ActionEase* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseSineOut() {}
|
EaseSineOut() {}
|
||||||
virtual ~EaseSineOut() {}
|
virtual ~EaseSineOut() {}
|
||||||
|
|
||||||
|
@ -296,7 +298,7 @@ public:
|
||||||
virtual EaseSineInOut* clone() const override;
|
virtual EaseSineInOut* clone() const override;
|
||||||
virtual EaseSineInOut* reverse() const override;
|
virtual EaseSineInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseSineInOut() {}
|
EaseSineInOut() {}
|
||||||
virtual ~EaseSineInOut() {}
|
virtual ~EaseSineInOut() {}
|
||||||
|
|
||||||
|
@ -324,12 +326,13 @@ public:
|
||||||
virtual EaseElastic* clone() const override = 0;
|
virtual EaseElastic* clone() const override = 0;
|
||||||
virtual EaseElastic* reverse() const override = 0;
|
virtual EaseElastic* reverse() const override = 0;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseElastic() {}
|
EaseElastic() {}
|
||||||
virtual ~EaseElastic() {}
|
virtual ~EaseElastic() {}
|
||||||
/** Initializes the action with the inner action and the period in radians (default is 0.3) */
|
/** Initializes the action with the inner action and the period in radians (default is 0.3) */
|
||||||
bool initWithAction(ActionInterval *action, float period = 0.3f);
|
bool initWithAction(ActionInterval *action, float period = 0.3f);
|
||||||
|
|
||||||
|
protected:
|
||||||
float _period;
|
float _period;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -355,7 +358,7 @@ public:
|
||||||
virtual EaseElasticIn* clone() const override;
|
virtual EaseElasticIn* clone() const override;
|
||||||
virtual EaseElastic* reverse() const override;
|
virtual EaseElastic* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseElasticIn() {}
|
EaseElasticIn() {}
|
||||||
virtual ~EaseElasticIn() {}
|
virtual ~EaseElasticIn() {}
|
||||||
|
|
||||||
|
@ -381,7 +384,7 @@ public:
|
||||||
virtual EaseElasticOut* clone() const override;
|
virtual EaseElasticOut* clone() const override;
|
||||||
virtual EaseElastic* reverse() const override;
|
virtual EaseElastic* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseElasticOut() {}
|
EaseElasticOut() {}
|
||||||
virtual ~EaseElasticOut() {}
|
virtual ~EaseElasticOut() {}
|
||||||
|
|
||||||
|
@ -407,7 +410,7 @@ public:
|
||||||
virtual EaseElasticInOut* clone() const override;
|
virtual EaseElasticInOut* clone() const override;
|
||||||
virtual EaseElasticInOut* reverse() const override;
|
virtual EaseElasticInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseElasticInOut() {}
|
EaseElasticInOut() {}
|
||||||
virtual ~EaseElasticInOut() {}
|
virtual ~EaseElasticInOut() {}
|
||||||
|
|
||||||
|
@ -428,7 +431,7 @@ public:
|
||||||
virtual EaseBounce* clone() const override = 0;
|
virtual EaseBounce* clone() const override = 0;
|
||||||
virtual EaseBounce* reverse() const override = 0;
|
virtual EaseBounce* reverse() const override = 0;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBounce() {}
|
EaseBounce() {}
|
||||||
virtual ~EaseBounce() {}
|
virtual ~EaseBounce() {}
|
||||||
|
|
||||||
|
@ -453,7 +456,7 @@ public:
|
||||||
virtual EaseBounceIn* clone() const override;
|
virtual EaseBounceIn* clone() const override;
|
||||||
virtual EaseBounce* reverse() const override;
|
virtual EaseBounce* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBounceIn() {}
|
EaseBounceIn() {}
|
||||||
virtual ~EaseBounceIn() {}
|
virtual ~EaseBounceIn() {}
|
||||||
|
|
||||||
|
@ -478,7 +481,7 @@ public:
|
||||||
virtual EaseBounceOut* clone() const override;
|
virtual EaseBounceOut* clone() const override;
|
||||||
virtual EaseBounce* reverse() const override;
|
virtual EaseBounce* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBounceOut() {}
|
EaseBounceOut() {}
|
||||||
virtual ~EaseBounceOut() {}
|
virtual ~EaseBounceOut() {}
|
||||||
|
|
||||||
|
@ -503,7 +506,7 @@ public:
|
||||||
virtual EaseBounceInOut* clone() const override;
|
virtual EaseBounceInOut* clone() const override;
|
||||||
virtual EaseBounceInOut* reverse() const override;
|
virtual EaseBounceInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBounceInOut() {}
|
EaseBounceInOut() {}
|
||||||
virtual ~EaseBounceInOut() {}
|
virtual ~EaseBounceInOut() {}
|
||||||
|
|
||||||
|
@ -528,7 +531,7 @@ public:
|
||||||
virtual EaseBackIn* clone() const override;
|
virtual EaseBackIn* clone() const override;
|
||||||
virtual ActionEase* reverse() const override;
|
virtual ActionEase* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBackIn() {}
|
EaseBackIn() {}
|
||||||
virtual ~EaseBackIn() {}
|
virtual ~EaseBackIn() {}
|
||||||
|
|
||||||
|
@ -553,7 +556,7 @@ public:
|
||||||
virtual EaseBackOut* clone() const override;
|
virtual EaseBackOut* clone() const override;
|
||||||
virtual ActionEase* reverse() const override;
|
virtual ActionEase* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBackOut() {}
|
EaseBackOut() {}
|
||||||
virtual ~EaseBackOut() {}
|
virtual ~EaseBackOut() {}
|
||||||
|
|
||||||
|
@ -578,7 +581,7 @@ public:
|
||||||
virtual EaseBackInOut* clone() const override;
|
virtual EaseBackInOut* clone() const override;
|
||||||
virtual EaseBackInOut* reverse() const override;
|
virtual EaseBackInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBackInOut() {}
|
EaseBackInOut() {}
|
||||||
virtual ~EaseBackInOut() {}
|
virtual ~EaseBackInOut() {}
|
||||||
|
|
||||||
|
@ -603,10 +606,11 @@ public:
|
||||||
|
|
||||||
virtual void setBezierParamer( float p0, float p1, float p2, float p3);
|
virtual void setBezierParamer( float p0, float p1, float p2, float p3);
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseBezierAction() {}
|
EaseBezierAction() {}
|
||||||
virtual ~EaseBezierAction() {}
|
virtual ~EaseBezierAction() {}
|
||||||
|
|
||||||
|
protected:
|
||||||
float _p0;
|
float _p0;
|
||||||
float _p1;
|
float _p1;
|
||||||
float _p2;
|
float _p2;
|
||||||
|
@ -630,7 +634,7 @@ public:
|
||||||
virtual EaseQuadraticActionIn* clone() const override;
|
virtual EaseQuadraticActionIn* clone() const override;
|
||||||
virtual EaseQuadraticActionIn* reverse() const override;
|
virtual EaseQuadraticActionIn* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuadraticActionIn() {}
|
EaseQuadraticActionIn() {}
|
||||||
virtual ~EaseQuadraticActionIn() {}
|
virtual ~EaseQuadraticActionIn() {}
|
||||||
|
|
||||||
|
@ -653,7 +657,7 @@ public:
|
||||||
virtual EaseQuadraticActionOut* clone() const override;
|
virtual EaseQuadraticActionOut* clone() const override;
|
||||||
virtual EaseQuadraticActionOut* reverse() const override;
|
virtual EaseQuadraticActionOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuadraticActionOut() {}
|
EaseQuadraticActionOut() {}
|
||||||
virtual ~EaseQuadraticActionOut() {}
|
virtual ~EaseQuadraticActionOut() {}
|
||||||
|
|
||||||
|
@ -676,7 +680,7 @@ public:
|
||||||
virtual EaseQuadraticActionInOut* clone() const override;
|
virtual EaseQuadraticActionInOut* clone() const override;
|
||||||
virtual EaseQuadraticActionInOut* reverse() const override;
|
virtual EaseQuadraticActionInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuadraticActionInOut() {}
|
EaseQuadraticActionInOut() {}
|
||||||
virtual ~EaseQuadraticActionInOut() {}
|
virtual ~EaseQuadraticActionInOut() {}
|
||||||
|
|
||||||
|
@ -698,7 +702,7 @@ public:
|
||||||
virtual EaseQuarticActionIn* clone() const override;
|
virtual EaseQuarticActionIn* clone() const override;
|
||||||
virtual EaseQuarticActionIn* reverse() const override;
|
virtual EaseQuarticActionIn* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuarticActionIn() {}
|
EaseQuarticActionIn() {}
|
||||||
virtual ~EaseQuarticActionIn() {}
|
virtual ~EaseQuarticActionIn() {}
|
||||||
|
|
||||||
|
@ -720,7 +724,7 @@ public:
|
||||||
virtual EaseQuarticActionOut* clone() const override;
|
virtual EaseQuarticActionOut* clone() const override;
|
||||||
virtual EaseQuarticActionOut* reverse() const override;
|
virtual EaseQuarticActionOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuarticActionOut() {}
|
EaseQuarticActionOut() {}
|
||||||
virtual ~EaseQuarticActionOut() {}
|
virtual ~EaseQuarticActionOut() {}
|
||||||
|
|
||||||
|
@ -742,7 +746,7 @@ public:
|
||||||
virtual EaseQuarticActionInOut* clone() const override;
|
virtual EaseQuarticActionInOut* clone() const override;
|
||||||
virtual EaseQuarticActionInOut* reverse() const override;
|
virtual EaseQuarticActionInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuarticActionInOut() {}
|
EaseQuarticActionInOut() {}
|
||||||
virtual ~EaseQuarticActionInOut() {}
|
virtual ~EaseQuarticActionInOut() {}
|
||||||
|
|
||||||
|
@ -765,7 +769,7 @@ public:
|
||||||
virtual EaseQuinticActionIn* clone() const override;
|
virtual EaseQuinticActionIn* clone() const override;
|
||||||
virtual EaseQuinticActionIn* reverse() const override;
|
virtual EaseQuinticActionIn* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuinticActionIn() {}
|
EaseQuinticActionIn() {}
|
||||||
virtual ~EaseQuinticActionIn() {}
|
virtual ~EaseQuinticActionIn() {}
|
||||||
|
|
||||||
|
@ -787,7 +791,7 @@ public:
|
||||||
virtual EaseQuinticActionOut* clone() const override;
|
virtual EaseQuinticActionOut* clone() const override;
|
||||||
virtual EaseQuinticActionOut* reverse() const override;
|
virtual EaseQuinticActionOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuinticActionOut() {}
|
EaseQuinticActionOut() {}
|
||||||
virtual ~EaseQuinticActionOut() {}
|
virtual ~EaseQuinticActionOut() {}
|
||||||
|
|
||||||
|
@ -809,7 +813,7 @@ public:
|
||||||
virtual EaseQuinticActionInOut* clone() const override;
|
virtual EaseQuinticActionInOut* clone() const override;
|
||||||
virtual EaseQuinticActionInOut* reverse() const override;
|
virtual EaseQuinticActionInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseQuinticActionInOut() {}
|
EaseQuinticActionInOut() {}
|
||||||
virtual ~EaseQuinticActionInOut() {}
|
virtual ~EaseQuinticActionInOut() {}
|
||||||
|
|
||||||
|
@ -831,7 +835,7 @@ public:
|
||||||
virtual EaseCircleActionIn* clone() const override;
|
virtual EaseCircleActionIn* clone() const override;
|
||||||
virtual EaseCircleActionIn* reverse() const override;
|
virtual EaseCircleActionIn* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseCircleActionIn() {}
|
EaseCircleActionIn() {}
|
||||||
virtual ~EaseCircleActionIn() {}
|
virtual ~EaseCircleActionIn() {}
|
||||||
|
|
||||||
|
@ -853,7 +857,7 @@ public:
|
||||||
virtual EaseCircleActionOut* clone() const override;
|
virtual EaseCircleActionOut* clone() const override;
|
||||||
virtual EaseCircleActionOut* reverse() const override;
|
virtual EaseCircleActionOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseCircleActionOut() {}
|
EaseCircleActionOut() {}
|
||||||
virtual ~EaseCircleActionOut() {}
|
virtual ~EaseCircleActionOut() {}
|
||||||
|
|
||||||
|
@ -875,7 +879,7 @@ public:
|
||||||
virtual EaseCircleActionInOut* clone() const override;
|
virtual EaseCircleActionInOut* clone() const override;
|
||||||
virtual EaseCircleActionInOut* reverse() const override;
|
virtual EaseCircleActionInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseCircleActionInOut() {}
|
EaseCircleActionInOut() {}
|
||||||
virtual ~EaseCircleActionInOut() {}
|
virtual ~EaseCircleActionInOut() {}
|
||||||
|
|
||||||
|
@ -897,7 +901,7 @@ public:
|
||||||
virtual EaseCubicActionIn* clone() const override;
|
virtual EaseCubicActionIn* clone() const override;
|
||||||
virtual EaseCubicActionIn* reverse() const override;
|
virtual EaseCubicActionIn* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseCubicActionIn() {}
|
EaseCubicActionIn() {}
|
||||||
virtual ~EaseCubicActionIn() {}
|
virtual ~EaseCubicActionIn() {}
|
||||||
|
|
||||||
|
@ -919,7 +923,7 @@ public:
|
||||||
virtual EaseCubicActionOut* clone() const override;
|
virtual EaseCubicActionOut* clone() const override;
|
||||||
virtual EaseCubicActionOut* reverse() const override;
|
virtual EaseCubicActionOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseCubicActionOut() {}
|
EaseCubicActionOut() {}
|
||||||
virtual ~EaseCubicActionOut() {}
|
virtual ~EaseCubicActionOut() {}
|
||||||
|
|
||||||
|
@ -941,7 +945,7 @@ public:
|
||||||
virtual EaseCubicActionInOut* clone() const override;
|
virtual EaseCubicActionInOut* clone() const override;
|
||||||
virtual EaseCubicActionInOut* reverse() const override;
|
virtual EaseCubicActionInOut* reverse() const override;
|
||||||
|
|
||||||
protected:
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
EaseCubicActionInOut() {}
|
EaseCubicActionInOut() {}
|
||||||
virtual ~EaseCubicActionInOut() {}
|
virtual ~EaseCubicActionInOut() {}
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@ class CC_DLL ActionTween : public ActionInterval
|
||||||
public:
|
public:
|
||||||
/** creates an initializes the action with the property name (key), and the from and to parameters. */
|
/** creates an initializes the action with the property name (key), and the from and to parameters. */
|
||||||
static ActionTween* create(float duration, const std::string& key, float from, float to);
|
static ActionTween* create(float duration, const std::string& key, float from, float to);
|
||||||
/** initializes the action with the property name (key), and the from and to parameters. */
|
|
||||||
bool initWithDuration(float duration, const std::string& key, float from, float to);
|
|
||||||
|
|
||||||
// Overrides
|
// Overrides
|
||||||
void startWithTarget(Node *target) override;
|
void startWithTarget(Node *target) override;
|
||||||
|
@ -80,6 +78,10 @@ public:
|
||||||
ActionTween* reverse() const override;
|
ActionTween* reverse() const override;
|
||||||
ActionTween *clone() const override;
|
ActionTween *clone() const override;
|
||||||
|
|
||||||
|
CC_CONSTRUCTOR_ACCESS:
|
||||||
|
/** initializes the action with the property name (key), and the from and to parameters. */
|
||||||
|
bool initWithDuration(float duration, const std::string& key, float from, float to);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string _key;
|
std::string _key;
|
||||||
float _from, _to;
|
float _from, _to;
|
||||||
|
|
Loading…
Reference in New Issue