mirror of https://github.com/axmolengine/axmol.git
Remove CC_CONSTRUCTOR_ACCESS, refer to #603
This commit is contained in:
parent
32ba12cc94
commit
a576a42002
|
@ -162,7 +162,7 @@ public:
|
|||
*/
|
||||
void setFlags(unsigned int flags) { _flags = flags; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Action();
|
||||
Action();
|
||||
virtual ~Action();
|
||||
|
||||
protected:
|
||||
|
@ -219,7 +219,7 @@ public:
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FiniteTimeAction() : _duration(0) {}
|
||||
FiniteTimeAction() : _duration(0) {}
|
||||
virtual ~FiniteTimeAction() {}
|
||||
|
||||
protected:
|
||||
|
@ -287,7 +287,7 @@ public:
|
|||
*/
|
||||
virtual bool isDone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Speed();
|
||||
Speed();
|
||||
virtual ~Speed();
|
||||
/** Initializes the action. */
|
||||
bool initWithAction(ActionInterval* action, float speed);
|
||||
|
@ -364,11 +364,10 @@ public:
|
|||
virtual bool isDone() const override;
|
||||
virtual void stop() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Follow()
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Follow()
|
||||
: _followedNode(nullptr)
|
||||
, _boundarySet(false)
|
||||
, _boundaryFullyCovered(false)
|
||||
|
|
|
@ -147,11 +147,10 @@ public:
|
|||
virtual void startWithTarget(Node* target) override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
OrbitCamera();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
OrbitCamera();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
virtual void stop() override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ActionEase() : _inner(nullptr) {}
|
||||
ActionEase() : _inner(nullptr) {}
|
||||
|
||||
virtual ~ActionEase();
|
||||
/**
|
||||
|
@ -99,7 +99,7 @@ public:
|
|||
*/
|
||||
float getRate() const { return _rate; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EaseRateAction() {}
|
||||
EaseRateAction() {}
|
||||
virtual ~EaseRateAction() {}
|
||||
/**
|
||||
@brief Initializes the action with the inner action and the rate parameter.
|
||||
|
@ -123,7 +123,8 @@ private:
|
|||
#define EASE_TEMPLATE_DECL_CLASS(CLASSNAME) \
|
||||
class CC_DLL CLASSNAME : public ActionEase \
|
||||
{ \
|
||||
CC_CONSTRUCTOR_ACCESS : virtual ~CLASSNAME() {} \
|
||||
public: \
|
||||
virtual ~CLASSNAME() {} \
|
||||
CLASSNAME() {} \
|
||||
\
|
||||
public: \
|
||||
|
@ -374,10 +375,10 @@ EASE_TEMPLATE_DECL_CLASS(EaseCubicActionInOut);
|
|||
#define EASERATE_TEMPLATE_DECL_CLASS(CLASSNAME) \
|
||||
class CC_DLL CLASSNAME : public EaseRateAction \
|
||||
{ \
|
||||
CC_CONSTRUCTOR_ACCESS : virtual ~CLASSNAME() {} \
|
||||
public: \
|
||||
virtual ~CLASSNAME() {} \
|
||||
CLASSNAME() {} \
|
||||
\
|
||||
public: \
|
||||
static CLASSNAME* create(ActionInterval* action, float rate); \
|
||||
virtual CLASSNAME* clone() const override; \
|
||||
virtual void update(float time) override; \
|
||||
|
@ -436,7 +437,7 @@ public:
|
|||
*/
|
||||
void setPeriod(float fPeriod) { _period = fPeriod; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EaseElastic() {}
|
||||
EaseElastic() {}
|
||||
virtual ~EaseElastic() {}
|
||||
/**
|
||||
@brief Initializes the action with the inner action and the period in radians.
|
||||
|
@ -460,10 +461,10 @@ private:
|
|||
#define EASEELASTIC_TEMPLATE_DECL_CLASS(CLASSNAME) \
|
||||
class CC_DLL CLASSNAME : public EaseElastic \
|
||||
{ \
|
||||
CC_CONSTRUCTOR_ACCESS : virtual ~CLASSNAME() {} \
|
||||
public: \
|
||||
virtual ~CLASSNAME() {} \
|
||||
CLASSNAME() {} \
|
||||
\
|
||||
public: \
|
||||
static CLASSNAME* create(ActionInterval* action, float rate = 0.3f); \
|
||||
virtual CLASSNAME* clone() const override; \
|
||||
virtual void update(float time) override; \
|
||||
|
@ -534,7 +535,7 @@ public:
|
|||
*/
|
||||
virtual void setBezierParamer(float p0, float p1, float p2, float p3);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EaseBezierAction() {}
|
||||
EaseBezierAction() {}
|
||||
virtual ~EaseBezierAction() {}
|
||||
|
||||
protected:
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
virtual GridAction* reverse() const override;
|
||||
virtual void startWithTarget(Node* target) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : GridAction() {}
|
||||
GridAction() {}
|
||||
virtual ~GridAction() {}
|
||||
/**
|
||||
* @brief Initializes the action with size and duration.
|
||||
|
@ -217,7 +217,7 @@ public:
|
|||
virtual AccelDeccelAmplitude* clone() const override;
|
||||
virtual AccelDeccelAmplitude* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : AccelDeccelAmplitude() {}
|
||||
AccelDeccelAmplitude() {}
|
||||
virtual ~AccelDeccelAmplitude();
|
||||
|
||||
/**
|
||||
|
@ -268,7 +268,7 @@ public:
|
|||
virtual AccelAmplitude* clone() const override;
|
||||
virtual AccelAmplitude* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : AccelAmplitude() {}
|
||||
AccelAmplitude() {}
|
||||
virtual ~AccelAmplitude();
|
||||
|
||||
bool initWithAction(Action* action, float duration);
|
||||
|
@ -313,7 +313,7 @@ public:
|
|||
virtual DeccelAmplitude* clone() const override;
|
||||
virtual DeccelAmplitude* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : DeccelAmplitude() {}
|
||||
DeccelAmplitude() {}
|
||||
virtual ~DeccelAmplitude();
|
||||
|
||||
/**
|
||||
|
@ -354,7 +354,7 @@ public:
|
|||
virtual StopGrid* clone() const override;
|
||||
virtual StopGrid* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : StopGrid() {}
|
||||
StopGrid() {}
|
||||
virtual ~StopGrid() {}
|
||||
|
||||
protected:
|
||||
|
@ -384,7 +384,7 @@ public:
|
|||
virtual ReuseGrid* clone() const override;
|
||||
virtual ReuseGrid* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ReuseGrid() {}
|
||||
ReuseGrid() {}
|
||||
virtual ~ReuseGrid() {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
virtual Waves3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Waves3D() {}
|
||||
Waves3D() {}
|
||||
virtual ~Waves3D() {}
|
||||
|
||||
/**
|
||||
|
@ -121,7 +121,7 @@ public:
|
|||
virtual FlipX3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FlipX3D() {}
|
||||
FlipX3D() {}
|
||||
virtual ~FlipX3D() {}
|
||||
|
||||
/**
|
||||
|
@ -161,7 +161,7 @@ public:
|
|||
virtual void update(float time) override;
|
||||
virtual FlipY3D* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FlipY3D() {}
|
||||
FlipY3D() {}
|
||||
virtual ~FlipY3D() {}
|
||||
|
||||
private:
|
||||
|
@ -222,7 +222,7 @@ public:
|
|||
virtual Lens3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Lens3D() {}
|
||||
Lens3D() {}
|
||||
virtual ~Lens3D() {}
|
||||
|
||||
/**
|
||||
|
@ -314,7 +314,7 @@ public:
|
|||
virtual Ripple3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Ripple3D() {}
|
||||
Ripple3D() {}
|
||||
virtual ~Ripple3D() {}
|
||||
|
||||
/**
|
||||
|
@ -369,7 +369,7 @@ public:
|
|||
virtual Shaky3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Shaky3D() {}
|
||||
Shaky3D() {}
|
||||
virtual ~Shaky3D() {}
|
||||
|
||||
/**
|
||||
|
@ -435,7 +435,7 @@ public:
|
|||
virtual Liquid* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Liquid() {}
|
||||
Liquid() {}
|
||||
virtual ~Liquid() {}
|
||||
|
||||
/**
|
||||
|
@ -510,7 +510,7 @@ public:
|
|||
virtual Waves* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Waves() {}
|
||||
Waves() {}
|
||||
virtual ~Waves() {}
|
||||
|
||||
/**
|
||||
|
@ -602,7 +602,7 @@ public:
|
|||
virtual Twirl* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Twirl() {}
|
||||
Twirl() {}
|
||||
virtual ~Twirl() {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -98,7 +98,7 @@ public:
|
|||
virtual ActionInstant* reverse() const override;
|
||||
virtual Show* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Show() {}
|
||||
Show() {}
|
||||
virtual ~Show() {}
|
||||
|
||||
private:
|
||||
|
@ -127,7 +127,7 @@ public:
|
|||
virtual ActionInstant* reverse() const override;
|
||||
virtual Hide* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Hide() {}
|
||||
Hide() {}
|
||||
virtual ~Hide() {}
|
||||
|
||||
private:
|
||||
|
@ -156,7 +156,7 @@ public:
|
|||
virtual ToggleVisibility* reverse() const override;
|
||||
virtual ToggleVisibility* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ToggleVisibility() {}
|
||||
ToggleVisibility() {}
|
||||
virtual ~ToggleVisibility() {}
|
||||
|
||||
private:
|
||||
|
@ -186,7 +186,7 @@ public:
|
|||
virtual RemoveSelf* clone() const override;
|
||||
virtual RemoveSelf* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : RemoveSelf() : _isNeedCleanUp(true) {}
|
||||
RemoveSelf() : _isNeedCleanUp(true) {}
|
||||
virtual ~RemoveSelf() {}
|
||||
|
||||
/** init the action */
|
||||
|
@ -223,7 +223,7 @@ public:
|
|||
virtual FlipX* reverse() const override;
|
||||
virtual FlipX* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FlipX() : _flipX(false) {}
|
||||
FlipX() : _flipX(false) {}
|
||||
virtual ~FlipX() {}
|
||||
|
||||
/** init the action */
|
||||
|
@ -260,7 +260,7 @@ public:
|
|||
virtual FlipY* reverse() const override;
|
||||
virtual FlipY* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FlipY() : _flipY(false) {}
|
||||
FlipY() : _flipY(false) {}
|
||||
virtual ~FlipY() {}
|
||||
|
||||
/** init the action */
|
||||
|
@ -296,7 +296,7 @@ public:
|
|||
virtual Place* reverse() const override;
|
||||
virtual Place* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Place() {}
|
||||
Place() {}
|
||||
virtual ~Place() {}
|
||||
|
||||
/** Initializes a Place action with a position */
|
||||
|
@ -341,7 +341,7 @@ public:
|
|||
virtual CallFunc* reverse() const override;
|
||||
virtual CallFunc* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : CallFunc() = default;
|
||||
CallFunc() = default;
|
||||
virtual ~CallFunc() = default;
|
||||
|
||||
/** initializes the action with the std::function<void()>
|
||||
|
@ -378,7 +378,7 @@ public:
|
|||
virtual CallFuncN* clone() const override;
|
||||
virtual void execute() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : CallFuncN() : _functionN(nullptr) {}
|
||||
CallFuncN() : _functionN(nullptr) {}
|
||||
virtual ~CallFuncN() {}
|
||||
|
||||
/** initializes the action with the std::function<void(Node*)> */
|
||||
|
|
|
@ -110,10 +110,8 @@ public:
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/** initializes the action */
|
||||
bool
|
||||
initWithDuration(float d);
|
||||
/** initializes the action */
|
||||
bool initWithDuration(float d);
|
||||
|
||||
protected:
|
||||
float _elapsed;
|
||||
|
@ -176,7 +174,7 @@ public:
|
|||
*/
|
||||
virtual void update(float t) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Sequence();
|
||||
Sequence();
|
||||
virtual ~Sequence();
|
||||
|
||||
/** initializes the action */
|
||||
|
@ -240,7 +238,7 @@ public:
|
|||
virtual void update(float dt) override;
|
||||
virtual bool isDone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Repeat() {}
|
||||
Repeat() {}
|
||||
virtual ~Repeat();
|
||||
|
||||
/** initializes a Repeat action. Times is an unsigned integer between 1 and pow(2,30) */
|
||||
|
@ -305,7 +303,7 @@ public:
|
|||
virtual void step(float dt) override;
|
||||
virtual bool isDone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : RepeatForever() : _innerAction(nullptr) {}
|
||||
RepeatForever() : _innerAction(nullptr) {}
|
||||
virtual ~RepeatForever();
|
||||
|
||||
/** initializes the action */
|
||||
|
@ -373,7 +371,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Spawn();
|
||||
Spawn();
|
||||
virtual ~Spawn();
|
||||
|
||||
/** initializes the Spawn action with the 2 actions to spawn */
|
||||
|
@ -433,7 +431,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : RotateTo();
|
||||
RotateTo();
|
||||
virtual ~RotateTo() {}
|
||||
|
||||
/**
|
||||
|
@ -508,7 +506,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : RotateBy();
|
||||
RotateBy();
|
||||
virtual ~RotateBy() {}
|
||||
|
||||
/** initializes the action */
|
||||
|
@ -568,7 +566,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : MoveBy() : _is3D(false) {}
|
||||
MoveBy() : _is3D(false) {}
|
||||
virtual ~MoveBy() {}
|
||||
|
||||
/** initializes the action */
|
||||
|
@ -616,7 +614,7 @@ public:
|
|||
virtual MoveTo* reverse() const override;
|
||||
virtual void startWithTarget(Node* target) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : MoveTo() {}
|
||||
MoveTo() {}
|
||||
virtual ~MoveTo() {}
|
||||
|
||||
/**
|
||||
|
@ -664,7 +662,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : SkewTo();
|
||||
SkewTo();
|
||||
virtual ~SkewTo() {}
|
||||
/**
|
||||
* @param t In seconds.
|
||||
|
@ -708,7 +706,7 @@ public:
|
|||
virtual SkewBy* clone() const override;
|
||||
virtual SkewBy* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : SkewBy() {}
|
||||
SkewBy() {}
|
||||
virtual ~SkewBy() {}
|
||||
/**
|
||||
* @param t In seconds.
|
||||
|
@ -742,7 +740,7 @@ public:
|
|||
void startWithTarget(cocos2d::Node* target) override;
|
||||
void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ResizeTo() {}
|
||||
ResizeTo() {}
|
||||
virtual ~ResizeTo() {}
|
||||
|
||||
/**
|
||||
|
@ -788,7 +786,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ResizeBy() {}
|
||||
ResizeBy() {}
|
||||
virtual ~ResizeBy() {}
|
||||
|
||||
/** initializes the action */
|
||||
|
@ -830,7 +828,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : JumpBy() {}
|
||||
JumpBy() {}
|
||||
virtual ~JumpBy() {}
|
||||
|
||||
/**
|
||||
|
@ -873,7 +871,7 @@ public:
|
|||
virtual JumpTo* clone() const override;
|
||||
virtual JumpTo* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : JumpTo() {}
|
||||
JumpTo() {}
|
||||
virtual ~JumpTo() {}
|
||||
|
||||
/**
|
||||
|
@ -930,7 +928,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : BezierBy() {}
|
||||
BezierBy() {}
|
||||
virtual ~BezierBy() {}
|
||||
|
||||
/**
|
||||
|
@ -974,7 +972,7 @@ public:
|
|||
virtual BezierTo* clone() const override;
|
||||
virtual BezierTo* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : BezierTo() {}
|
||||
BezierTo() {}
|
||||
virtual ~BezierTo() {}
|
||||
/**
|
||||
* @param t In seconds.
|
||||
|
@ -1034,7 +1032,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ScaleTo() {}
|
||||
ScaleTo() {}
|
||||
virtual ~ScaleTo() {}
|
||||
|
||||
/**
|
||||
|
@ -1112,7 +1110,7 @@ public:
|
|||
virtual ScaleBy* clone() const override;
|
||||
virtual ScaleBy* reverse() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ScaleBy() {}
|
||||
ScaleBy() {}
|
||||
virtual ~ScaleBy() {}
|
||||
|
||||
private:
|
||||
|
@ -1145,7 +1143,7 @@ public:
|
|||
virtual void startWithTarget(Node* target) override;
|
||||
virtual void stop() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Blink() {}
|
||||
Blink() {}
|
||||
virtual ~Blink() {}
|
||||
|
||||
/**
|
||||
|
@ -1189,7 +1187,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FadeTo() {}
|
||||
FadeTo() {}
|
||||
virtual ~FadeTo() {}
|
||||
|
||||
/**
|
||||
|
@ -1234,7 +1232,7 @@ public:
|
|||
*/
|
||||
void setReverseAction(FadeTo* ac);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FadeIn() : _reverseAction(nullptr) {}
|
||||
FadeIn() : _reverseAction(nullptr) {}
|
||||
virtual ~FadeIn() {}
|
||||
|
||||
private:
|
||||
|
@ -1267,7 +1265,7 @@ public:
|
|||
*/
|
||||
void setReverseAction(FadeTo* ac);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FadeOut() : _reverseAction(nullptr) {}
|
||||
FadeOut() : _reverseAction(nullptr) {}
|
||||
virtual ~FadeOut() {}
|
||||
|
||||
private:
|
||||
|
@ -1311,7 +1309,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TintTo() {}
|
||||
TintTo() {}
|
||||
virtual ~TintTo() {}
|
||||
|
||||
/** initializes the action with duration and color */
|
||||
|
@ -1353,7 +1351,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TintBy() {}
|
||||
TintBy() {}
|
||||
virtual ~TintBy() {}
|
||||
|
||||
/** initializes the action with duration and color */
|
||||
|
@ -1395,7 +1393,7 @@ public:
|
|||
virtual DelayTime* reverse() const override;
|
||||
virtual DelayTime* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : DelayTime() {}
|
||||
DelayTime() {}
|
||||
virtual ~DelayTime() {}
|
||||
|
||||
private:
|
||||
|
@ -1432,7 +1430,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ReverseTime();
|
||||
ReverseTime();
|
||||
virtual ~ReverseTime();
|
||||
|
||||
/** initializes the action */
|
||||
|
@ -1488,7 +1486,7 @@ public:
|
|||
*/
|
||||
virtual void update(float t) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Animate();
|
||||
Animate();
|
||||
virtual ~Animate();
|
||||
|
||||
/** initializes the action with an Animation and will restore the original frame when the animation is over */
|
||||
|
@ -1548,7 +1546,7 @@ public:
|
|||
*/
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TargetedAction();
|
||||
TargetedAction();
|
||||
virtual ~TargetedAction();
|
||||
|
||||
/** Init an action with the specified action and forced target */
|
||||
|
@ -1594,7 +1592,7 @@ public:
|
|||
ActionFloat* reverse() const override;
|
||||
ActionFloat* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ActionFloat(){};
|
||||
ActionFloat(){};
|
||||
virtual ~ActionFloat(){};
|
||||
|
||||
bool initWithDuration(float duration, float from, float to, ActionFloatCallback callback);
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
virtual void startWithTarget(Node* target) override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ProgressTo() {}
|
||||
ProgressTo() {}
|
||||
virtual ~ProgressTo() {}
|
||||
|
||||
/**
|
||||
|
@ -104,7 +104,7 @@ public:
|
|||
virtual void startWithTarget(Node* target) override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ProgressFromTo() {}
|
||||
ProgressFromTo() {}
|
||||
virtual ~ProgressFromTo() {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -59,7 +59,7 @@ public:
|
|||
virtual ShakyTiles3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ShakyTiles3D() {}
|
||||
ShakyTiles3D() {}
|
||||
virtual ~ShakyTiles3D() {}
|
||||
|
||||
/**
|
||||
|
@ -103,7 +103,7 @@ public:
|
|||
virtual ShatteredTiles3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ShatteredTiles3D() {}
|
||||
ShatteredTiles3D() {}
|
||||
virtual ~ShatteredTiles3D() {}
|
||||
|
||||
/**
|
||||
|
@ -153,7 +153,7 @@ public:
|
|||
virtual void update(float time) override;
|
||||
virtual ShuffleTiles* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ShuffleTiles() {}
|
||||
ShuffleTiles() {}
|
||||
virtual ~ShuffleTiles();
|
||||
|
||||
/**
|
||||
|
@ -221,7 +221,7 @@ public:
|
|||
virtual void update(float time) override;
|
||||
virtual FadeOutTRTiles* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FadeOutTRTiles() {}
|
||||
FadeOutTRTiles() {}
|
||||
virtual ~FadeOutTRTiles() {}
|
||||
|
||||
private:
|
||||
|
@ -247,7 +247,7 @@ public:
|
|||
virtual float testFunc(const Vec2& pos, float time) override;
|
||||
virtual FadeOutBLTiles* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FadeOutBLTiles() {}
|
||||
FadeOutBLTiles() {}
|
||||
virtual ~FadeOutBLTiles() {}
|
||||
|
||||
private:
|
||||
|
@ -275,7 +275,7 @@ public:
|
|||
virtual FadeOutUpTiles* clone() const override;
|
||||
virtual float testFunc(const Vec2& pos, float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FadeOutUpTiles() {}
|
||||
FadeOutUpTiles() {}
|
||||
virtual ~FadeOutUpTiles() {}
|
||||
|
||||
private:
|
||||
|
@ -301,7 +301,7 @@ public:
|
|||
virtual FadeOutDownTiles* clone() const override;
|
||||
virtual float testFunc(const Vec2& pos, float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : FadeOutDownTiles() {}
|
||||
FadeOutDownTiles() {}
|
||||
virtual ~FadeOutDownTiles() {}
|
||||
|
||||
private:
|
||||
|
@ -355,7 +355,7 @@ public:
|
|||
virtual void startWithTarget(Node* target) override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TurnOffTiles() {}
|
||||
TurnOffTiles() {}
|
||||
virtual ~TurnOffTiles();
|
||||
|
||||
/**
|
||||
|
@ -419,7 +419,7 @@ public:
|
|||
virtual WavesTiles3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : WavesTiles3D() {}
|
||||
WavesTiles3D() {}
|
||||
virtual ~WavesTiles3D() {}
|
||||
|
||||
/**
|
||||
|
@ -484,7 +484,7 @@ public:
|
|||
virtual JumpTiles3D* clone() const override;
|
||||
virtual void update(float time) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : JumpTiles3D() {}
|
||||
JumpTiles3D() {}
|
||||
virtual ~JumpTiles3D() {}
|
||||
|
||||
/**
|
||||
|
@ -527,7 +527,7 @@ public:
|
|||
virtual void update(float time) override;
|
||||
virtual void startWithTarget(Node* target) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : SplitRows() {}
|
||||
SplitRows() {}
|
||||
virtual ~SplitRows() {}
|
||||
|
||||
/**
|
||||
|
@ -570,7 +570,7 @@ public:
|
|||
virtual void update(float time) override;
|
||||
virtual void startWithTarget(Node* target) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : SplitCols() {}
|
||||
SplitCols() {}
|
||||
virtual ~SplitCols() {}
|
||||
|
||||
/**
|
||||
|
|
|
@ -101,17 +101,15 @@ public:
|
|||
ActionTween* reverse() const override;
|
||||
ActionTween* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @brief Initializes the action with the property name (key), and the from and to parameters.
|
||||
* @param duration The duration of the ActionTween. It's a value in seconds.
|
||||
* @param key The key of property which should be updated.
|
||||
* @param from The value of the specified property when the action begin.
|
||||
* @param to The value of the specified property when the action end.
|
||||
* @return If the initialization success, return true; otherwise, return false.
|
||||
*/
|
||||
bool
|
||||
initWithDuration(float duration, std::string_view key, float from, float to);
|
||||
/**
|
||||
* @brief Initializes the action with the property name (key), and the from and to parameters.
|
||||
* @param duration The duration of the ActionTween. It's a value in seconds.
|
||||
* @param key The key of property which should be updated.
|
||||
* @param from The value of the specified property when the action begin.
|
||||
* @param to The value of the specified property when the action end.
|
||||
* @return If the initialization success, return true; otherwise, return false.
|
||||
*/
|
||||
bool initWithDuration(float duration, std::string_view key, float from, float to);
|
||||
|
||||
protected:
|
||||
std::string _key;
|
||||
|
|
|
@ -121,11 +121,10 @@ public:
|
|||
// Overrides
|
||||
virtual AnimationFrame* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
AnimationFrame();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
AnimationFrame();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -274,7 +273,7 @@ public:
|
|||
// overrides
|
||||
virtual Animation* clone() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Animation();
|
||||
Animation();
|
||||
virtual ~Animation();
|
||||
|
||||
/** Initializes a Animation. */
|
||||
|
|
|
@ -101,7 +101,7 @@ public:
|
|||
|
||||
bool setProgramState(backend::ProgramState* programState, bool needsRetain = true) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : AtlasNode() = default;
|
||||
AtlasNode() = default;
|
||||
virtual ~AtlasNode();
|
||||
|
||||
/** Initializes an AtlasNode with an Atlas file the width and height of each item and the quantity of items to
|
||||
|
|
|
@ -278,7 +278,7 @@ public:
|
|||
|
||||
bool isBrushValid();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Camera();
|
||||
Camera();
|
||||
~Camera();
|
||||
|
||||
/**
|
||||
|
|
|
@ -118,7 +118,7 @@ public:
|
|||
|
||||
virtual bool isValid() { return true; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : CameraBackgroundBrush();
|
||||
CameraBackgroundBrush();
|
||||
virtual ~CameraBackgroundBrush();
|
||||
|
||||
virtual bool init() { return true; }
|
||||
|
@ -157,7 +157,7 @@ public:
|
|||
*/
|
||||
void setDepth(float depth) { _depth = depth; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : CameraBackgroundDepthBrush();
|
||||
CameraBackgroundDepthBrush();
|
||||
virtual ~CameraBackgroundDepthBrush();
|
||||
|
||||
virtual bool init() override;
|
||||
|
@ -219,7 +219,7 @@ public:
|
|||
*/
|
||||
void setColor(const Color4F& color);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : CameraBackgroundColorBrush();
|
||||
CameraBackgroundColorBrush();
|
||||
virtual ~CameraBackgroundColorBrush();
|
||||
|
||||
virtual bool init() override;
|
||||
|
@ -281,7 +281,7 @@ public:
|
|||
virtual void setTextureValid(bool valid);
|
||||
virtual bool isValid() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : CameraBackgroundSkyBoxBrush();
|
||||
CameraBackgroundSkyBoxBrush();
|
||||
virtual ~CameraBackgroundSkyBoxBrush();
|
||||
|
||||
/**
|
||||
|
|
|
@ -135,7 +135,7 @@ public:
|
|||
|
||||
virtual void setCameraMask(unsigned short mask, bool applyChildren = true) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : ClippingNode();
|
||||
ClippingNode();
|
||||
|
||||
/**
|
||||
* @js NA
|
||||
|
|
|
@ -74,11 +74,10 @@ public:
|
|||
virtual void onAdd();
|
||||
virtual void onRemove();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Component();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Component();
|
||||
|
||||
protected:
|
||||
Node* _owner;
|
||||
|
|
|
@ -362,7 +362,7 @@ public:
|
|||
|
||||
bool isIsolated() const { return _isolated; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : DrawNode(float lineWidth = DEFAULT_LINE_WIDTH);
|
||||
DrawNode(float lineWidth = DEFAULT_LINE_WIDTH);
|
||||
virtual ~DrawNode();
|
||||
virtual bool init() override;
|
||||
|
||||
|
|
|
@ -292,7 +292,7 @@ public:
|
|||
|
||||
TMXTileAnimManager* getTileAnimManager() const { return _tileAnimManager; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : bool initWithTilesetInfo(TMXTilesetInfo* tilesetInfo,
|
||||
bool initWithTilesetInfo(TMXTilesetInfo* tilesetInfo,
|
||||
TMXLayerInfo* layerInfo,
|
||||
TMXMapInfo* mapInfo);
|
||||
|
||||
|
|
|
@ -209,11 +209,10 @@ public:
|
|||
|
||||
std::string_view getResourceFile() const { return _tmxFile; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
FastTMXTiledMap();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
FastTMXTiledMap();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -700,12 +700,11 @@ public:
|
|||
virtual void removeChild(Node* child, bool cleanup = true) override;
|
||||
virtual void setGlobalZOrder(float globalZOrder) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* Constructor of Label.
|
||||
* @js NA
|
||||
*/
|
||||
Label(TextHAlignment hAlignment = TextHAlignment::LEFT, TextVAlignment vAlignment = TextVAlignment::TOP);
|
||||
/**
|
||||
* Constructor of Label.
|
||||
* @js NA
|
||||
*/
|
||||
Label(TextHAlignment hAlignment = TextHAlignment::LEFT, TextVAlignment vAlignment = TextVAlignment::TOP);
|
||||
|
||||
/**
|
||||
* Destructor of Label.
|
||||
|
|
|
@ -111,7 +111,7 @@ public:
|
|||
virtual void draw(Renderer* renderer, const Mat4& transform, uint32_t flags) override;
|
||||
#endif
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : LabelAtlas() : _string("")
|
||||
LabelAtlas()
|
||||
{
|
||||
#if CC_LABELATLAS_DEBUG_DRAW
|
||||
_debugDrawNode = DrawNode::create();
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
// Overrides
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Layer();
|
||||
Layer();
|
||||
virtual ~Layer();
|
||||
|
||||
virtual bool init() override;
|
||||
|
@ -143,7 +143,7 @@ public:
|
|||
*/
|
||||
virtual void setBlendFunc(const BlendFunc& blendFunc) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : LayerColor();
|
||||
LayerColor();
|
||||
virtual ~LayerColor();
|
||||
|
||||
bool init() override;
|
||||
|
@ -285,7 +285,7 @@ public:
|
|||
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : LayerGradient();
|
||||
LayerGradient();
|
||||
virtual ~LayerGradient();
|
||||
|
||||
virtual bool init() override;
|
||||
|
@ -368,7 +368,7 @@ public:
|
|||
void setBlendFunc(const BlendFunc& blendFunc);
|
||||
BlendFunc getBlendFunc() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : LayerRadialGradient();
|
||||
LayerRadialGradient();
|
||||
virtual ~LayerRadialGradient();
|
||||
|
||||
bool initWithColor(const Color4B& startColor,
|
||||
|
@ -471,11 +471,10 @@ public:
|
|||
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
LayerMultiplex();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
LayerMultiplex();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
virtual void onEnter() override;
|
||||
virtual void onExit() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : BaseLight();
|
||||
BaseLight();
|
||||
virtual ~BaseLight();
|
||||
|
||||
protected:
|
||||
|
@ -135,7 +135,7 @@ public:
|
|||
*/
|
||||
Vec3 getDirectionInWorld() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : DirectionLight();
|
||||
DirectionLight();
|
||||
virtual ~DirectionLight();
|
||||
};
|
||||
|
||||
|
@ -162,7 +162,7 @@ public:
|
|||
float getRange() const { return _range; }
|
||||
void setRange(float range) { _range = range; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : PointLight();
|
||||
PointLight();
|
||||
virtual ~PointLight();
|
||||
|
||||
protected:
|
||||
|
@ -256,7 +256,7 @@ public:
|
|||
/** get cos outAngle */
|
||||
float getCosOuterAngle() const { return _cosOuterAngle; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : SpotLight();
|
||||
SpotLight();
|
||||
virtual ~SpotLight();
|
||||
|
||||
protected:
|
||||
|
@ -284,7 +284,7 @@ public:
|
|||
// get light type
|
||||
virtual LightType getLightType() const override { return LightType::AMBIENT; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : AmbientLight();
|
||||
AmbientLight();
|
||||
virtual ~AmbientLight();
|
||||
};
|
||||
|
||||
|
|
|
@ -157,13 +157,10 @@ public:
|
|||
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Menu()
|
||||
: _selectedItem(nullptr), _selectedWithCamera(nullptr)
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Menu() : _selectedItem(nullptr), _selectedWithCamera(nullptr) {}
|
||||
virtual ~Menu();
|
||||
|
||||
/** initializes an empty Menu */
|
||||
|
|
|
@ -91,13 +91,10 @@ public:
|
|||
*/
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItem()
|
||||
: _selected(false), _enabled(false), _callback(nullptr)
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItem() : _selected(false), _enabled(false), _callback(nullptr) {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -160,13 +157,10 @@ public:
|
|||
virtual void unselected() override;
|
||||
virtual void setEnabled(bool enabled) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemLabel()
|
||||
: _originalScale(0.0), _label(nullptr)
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemLabel() : _originalScale(0.0), _label(nullptr) {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -209,12 +203,10 @@ public:
|
|||
char startCharMap,
|
||||
const ccMenuCallback& callback);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemAtlasFont()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemAtlasFont() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -282,11 +274,10 @@ public:
|
|||
*/
|
||||
std::string_view getFontNameObj() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemFont();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemFont();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -355,8 +346,7 @@ public:
|
|||
/** Enables or disables the item. */
|
||||
virtual void setEnabled(bool bEnabled);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : MenuItemSprite() : _normalImage(nullptr), _selectedImage(nullptr), _disabledImage(nullptr)
|
||||
{}
|
||||
MenuItemSprite() : _normalImage(nullptr), _selectedImage(nullptr), _disabledImage(nullptr) {}
|
||||
|
||||
/** Initializes a menu item with a normal, selected and disabled image with a callable object. */
|
||||
bool initWithNormalSprite(Node* normalSprite,
|
||||
|
@ -414,12 +404,10 @@ public:
|
|||
/** Sets the sprite frame for the disabled image. */
|
||||
void setDisabledSpriteFrame(SpriteFrame* frame);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemImage()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemImage() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -490,13 +478,10 @@ public:
|
|||
virtual void setEnabled(bool var) override;
|
||||
virtual void cleanup() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemToggle()
|
||||
: _selectedIndex(0), _selectedItem(nullptr)
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
MenuItemToggle() : _selectedIndex(0), _selectedItem(nullptr) {}
|
||||
|
||||
/** Initializes a menu item from a list of items with a callable object. */
|
||||
bool initWithCallback(const ccMenuCallback& callback, MenuItem* item, va_list args);
|
||||
|
|
|
@ -158,7 +158,7 @@ public:
|
|||
|
||||
bool setProgramState(backend::ProgramState* programState, bool needsRetain) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : MotionStreak();
|
||||
MotionStreak();
|
||||
virtual ~MotionStreak();
|
||||
|
||||
/** initializes a motion streak with fade in seconds, minimum segments, stroke's width, color and texture filename
|
||||
|
|
|
@ -1824,9 +1824,8 @@ public:
|
|||
*/
|
||||
void resetChild(Node* child, bool cleanup);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
// Nodes should be created using create();
|
||||
Node();
|
||||
// Nodes should be created using create();
|
||||
Node();
|
||||
virtual ~Node();
|
||||
|
||||
virtual bool init();
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
// overrides
|
||||
virtual void visit(Renderer* renderer, const Mat4& parentTransform, uint32_t parentFlags) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : NodeGrid();
|
||||
NodeGrid();
|
||||
virtual ~NodeGrid();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -88,13 +88,12 @@ public:
|
|||
virtual void removeAllChildrenWithCleanup(bool cleanup) override;
|
||||
virtual void visit(Renderer* renderer, const Mat4& parentTransform, uint32_t parentFlags) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/** Adds a child to the container with a z-order, a parallax ratio and a position offset
|
||||
It returns self, so you can chain several addChilds.
|
||||
@since v0.8
|
||||
* @js ctor
|
||||
*/
|
||||
ParallaxNode();
|
||||
/** Adds a child to the container with a z-order, a parallax ratio and a position offset
|
||||
It returns self, so you can chain several addChilds.
|
||||
@since v0.8
|
||||
* @js ctor
|
||||
*/
|
||||
ParallaxNode();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -147,11 +147,10 @@ public:
|
|||
*/
|
||||
virtual const BlendFunc& getBlendFunc() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleBatchNode();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleBatchNode();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -56,12 +56,10 @@ public:
|
|||
*/
|
||||
static ParticleFire* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleFire()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleFire() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -94,12 +92,10 @@ public:
|
|||
*/
|
||||
static ParticleFireworks* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleFireworks()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleFireworks() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -132,12 +128,10 @@ public:
|
|||
*/
|
||||
static ParticleSun* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSun()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSun() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -170,12 +164,10 @@ public:
|
|||
*/
|
||||
static ParticleGalaxy* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleGalaxy()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleGalaxy() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -208,12 +200,10 @@ public:
|
|||
*/
|
||||
static ParticleFlower* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleFlower()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleFlower() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -246,12 +236,10 @@ public:
|
|||
*/
|
||||
static ParticleMeteor* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleMeteor()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleMeteor() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -284,12 +272,10 @@ public:
|
|||
*/
|
||||
static ParticleSpiral* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSpiral()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSpiral() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -322,12 +308,10 @@ public:
|
|||
*/
|
||||
static ParticleExplosion* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleExplosion()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleExplosion() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -360,12 +344,10 @@ public:
|
|||
*/
|
||||
static ParticleSmoke* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSmoke()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSmoke() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -398,12 +380,10 @@ public:
|
|||
*/
|
||||
static ParticleSnow* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSnow()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSnow() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -436,12 +416,10 @@ public:
|
|||
*/
|
||||
static ParticleRain* createWithTotalParticles(int numberOfParticles);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleRain()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleRain() {}
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -775,11 +775,10 @@ public:
|
|||
}
|
||||
bool isSourcePositionCompatible() const { return _sourcePositionCompatible; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSystem();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSystem();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -138,11 +138,10 @@ public:
|
|||
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSystemQuad();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ParticleSystemQuad();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -157,11 +157,10 @@ public:
|
|||
virtual void setOpacity(uint8_t opacity) override;
|
||||
virtual uint8_t getOpacity() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ProgressTimer() = default;
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ProgressTimer() = default;
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -188,7 +188,7 @@ public:
|
|||
virtual void disableCascadeOpacity() override;
|
||||
virtual void setCameraMask(unsigned short mask, bool applyChildren = true) override;
|
||||
virtual void setGlobalZOrder(float globalZOrder) override;
|
||||
CC_CONSTRUCTOR_ACCESS : ProtectedNode();
|
||||
ProtectedNode();
|
||||
virtual ~ProtectedNode();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -118,7 +118,7 @@ public:
|
|||
/** override function */
|
||||
virtual void removeAllChildren() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Scene();
|
||||
Scene();
|
||||
virtual ~Scene();
|
||||
|
||||
bool init() override;
|
||||
|
@ -179,7 +179,7 @@ public:
|
|||
*/
|
||||
static Scene* createWithPhysics();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : bool initWithPhysics();
|
||||
bool initWithPhysics();
|
||||
|
||||
bool initPhysicsWorld();
|
||||
|
||||
|
|
|
@ -515,11 +515,10 @@ public:
|
|||
int getResourceType() const { return _fileType; }
|
||||
std::string_view getResourceName() const { return _fileName; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Sprite();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Sprite();
|
||||
virtual ~Sprite();
|
||||
|
||||
/* Initializes an empty sprite with no parameters. */
|
||||
|
|
|
@ -229,11 +229,11 @@ public:
|
|||
If the current capacity is bigger, nothing happens.
|
||||
otherwise, a new capacity is allocated */
|
||||
void reserveCapacity(ssize_t newCapacity);
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
SpriteBatchNode();
|
||||
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
SpriteBatchNode();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -260,11 +260,10 @@ public:
|
|||
*/
|
||||
bool hasPolygonInfo() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
SpriteFrame();
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
SpriteFrame();
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
|
|
|
@ -113,7 +113,7 @@ public:
|
|||
virtual void onExit() override;
|
||||
virtual void cleanup() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionScene();
|
||||
TransitionScene();
|
||||
virtual ~TransitionScene();
|
||||
|
||||
/** initializes a transition with duration and incoming scene */
|
||||
|
@ -149,7 +149,7 @@ public:
|
|||
*/
|
||||
static TransitionSceneOriented* create(float t, Scene* scene, Orientation orientation);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionSceneOriented();
|
||||
TransitionSceneOriented();
|
||||
virtual ~TransitionSceneOriented();
|
||||
|
||||
/** initializes a transition with duration and incoming scene */
|
||||
|
@ -182,7 +182,7 @@ public:
|
|||
//
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionRotoZoom();
|
||||
TransitionRotoZoom();
|
||||
virtual ~TransitionRotoZoom();
|
||||
|
||||
private:
|
||||
|
@ -209,7 +209,7 @@ public:
|
|||
//
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionJumpZoom();
|
||||
TransitionJumpZoom();
|
||||
virtual ~TransitionJumpZoom();
|
||||
|
||||
private:
|
||||
|
@ -244,7 +244,7 @@ public:
|
|||
//
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionMoveInL();
|
||||
TransitionMoveInL();
|
||||
virtual ~TransitionMoveInL();
|
||||
|
||||
protected:
|
||||
|
@ -270,7 +270,7 @@ public:
|
|||
*/
|
||||
static TransitionMoveInR* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionMoveInR();
|
||||
TransitionMoveInR();
|
||||
virtual ~TransitionMoveInR();
|
||||
|
||||
protected:
|
||||
|
@ -295,7 +295,7 @@ public:
|
|||
*/
|
||||
static TransitionMoveInT* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionMoveInT();
|
||||
TransitionMoveInT();
|
||||
virtual ~TransitionMoveInT();
|
||||
|
||||
protected:
|
||||
|
@ -320,7 +320,7 @@ public:
|
|||
*/
|
||||
static TransitionMoveInB* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionMoveInB();
|
||||
TransitionMoveInB();
|
||||
virtual ~TransitionMoveInB();
|
||||
|
||||
protected:
|
||||
|
@ -358,7 +358,7 @@ public:
|
|||
//
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionSlideInL();
|
||||
TransitionSlideInL();
|
||||
virtual ~TransitionSlideInL();
|
||||
|
||||
protected:
|
||||
|
@ -389,7 +389,7 @@ public:
|
|||
/** Returns the action that will be performed by the incoming and outgoing scene. */
|
||||
virtual ActionInterval* action() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionSlideInR();
|
||||
TransitionSlideInR();
|
||||
virtual ~TransitionSlideInR();
|
||||
|
||||
protected:
|
||||
|
@ -420,7 +420,7 @@ public:
|
|||
/** returns the action that will be performed by the incoming and outgoing scene */
|
||||
virtual ActionInterval* action() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionSlideInB();
|
||||
TransitionSlideInB();
|
||||
virtual ~TransitionSlideInB();
|
||||
|
||||
protected:
|
||||
|
@ -451,7 +451,7 @@ public:
|
|||
/** returns the action that will be performed by the incoming and outgoing scene */
|
||||
virtual ActionInterval* action() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionSlideInT();
|
||||
TransitionSlideInT();
|
||||
virtual ~TransitionSlideInT();
|
||||
|
||||
protected:
|
||||
|
@ -487,7 +487,7 @@ public:
|
|||
virtual void onEnter() override;
|
||||
virtual ActionInterval* easeActionWithAction(ActionInterval* action) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionShrinkGrow();
|
||||
TransitionShrinkGrow();
|
||||
virtual ~TransitionShrinkGrow();
|
||||
|
||||
private:
|
||||
|
@ -526,7 +526,7 @@ public:
|
|||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFlipX();
|
||||
TransitionFlipX();
|
||||
virtual ~TransitionFlipX();
|
||||
|
||||
private:
|
||||
|
@ -565,7 +565,7 @@ public:
|
|||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFlipY();
|
||||
TransitionFlipY();
|
||||
virtual ~TransitionFlipY();
|
||||
|
||||
private:
|
||||
|
@ -604,7 +604,7 @@ public:
|
|||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFlipAngular();
|
||||
TransitionFlipAngular();
|
||||
virtual ~TransitionFlipAngular();
|
||||
|
||||
private:
|
||||
|
@ -643,7 +643,7 @@ public:
|
|||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionZoomFlipX();
|
||||
TransitionZoomFlipX();
|
||||
virtual ~TransitionZoomFlipX();
|
||||
|
||||
private:
|
||||
|
@ -682,7 +682,7 @@ public:
|
|||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionZoomFlipY();
|
||||
TransitionZoomFlipY();
|
||||
virtual ~TransitionZoomFlipY();
|
||||
|
||||
private:
|
||||
|
@ -721,7 +721,7 @@ public:
|
|||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionZoomFlipAngular();
|
||||
TransitionZoomFlipAngular();
|
||||
virtual ~TransitionZoomFlipAngular();
|
||||
|
||||
private:
|
||||
|
@ -761,7 +761,7 @@ public:
|
|||
*/
|
||||
virtual void onExit() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFade();
|
||||
TransitionFade();
|
||||
virtual ~TransitionFade();
|
||||
|
||||
/** initializes the transition with a duration and with an RGB color */
|
||||
|
@ -807,7 +807,7 @@ public:
|
|||
*/
|
||||
virtual void onExit() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionCrossFade();
|
||||
TransitionCrossFade();
|
||||
virtual ~TransitionCrossFade();
|
||||
|
||||
private:
|
||||
|
@ -846,7 +846,7 @@ public:
|
|||
*/
|
||||
virtual void draw(Renderer* renderer, const Mat4& transform, uint32_t flags) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionTurnOffTiles();
|
||||
TransitionTurnOffTiles();
|
||||
virtual ~TransitionTurnOffTiles();
|
||||
|
||||
protected:
|
||||
|
@ -889,7 +889,7 @@ public:
|
|||
virtual void onExit() override;
|
||||
virtual void draw(Renderer* renderer, const Mat4& transform, uint32_t flags) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionSplitCols();
|
||||
TransitionSplitCols();
|
||||
virtual ~TransitionSplitCols();
|
||||
|
||||
protected:
|
||||
|
@ -920,7 +920,7 @@ public:
|
|||
//
|
||||
virtual ActionInterval* action() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionSplitRows();
|
||||
TransitionSplitRows();
|
||||
virtual ~TransitionSplitRows();
|
||||
|
||||
private:
|
||||
|
@ -961,7 +961,7 @@ public:
|
|||
virtual void onExit() override;
|
||||
virtual void draw(Renderer* renderer, const Mat4& transform, uint32_t flags) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFadeTR();
|
||||
TransitionFadeTR();
|
||||
virtual ~TransitionFadeTR();
|
||||
|
||||
protected:
|
||||
|
@ -993,7 +993,7 @@ public:
|
|||
//
|
||||
virtual ActionInterval* actionWithSize(const Vec2& size) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFadeBL();
|
||||
TransitionFadeBL();
|
||||
virtual ~TransitionFadeBL();
|
||||
|
||||
private:
|
||||
|
@ -1020,7 +1020,7 @@ public:
|
|||
//
|
||||
virtual ActionInterval* actionWithSize(const Vec2& size) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFadeUp();
|
||||
TransitionFadeUp();
|
||||
virtual ~TransitionFadeUp();
|
||||
|
||||
private:
|
||||
|
@ -1047,7 +1047,7 @@ public:
|
|||
//
|
||||
virtual ActionInterval* actionWithSize(const Vec2& size) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionFadeDown();
|
||||
TransitionFadeDown();
|
||||
virtual ~TransitionFadeDown();
|
||||
|
||||
private:
|
||||
|
|
|
@ -99,11 +99,10 @@ public:
|
|||
virtual void onEnter() override;
|
||||
virtual void onExit() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionPageTurn();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionPageTurn();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
virtual void onEnter() override;
|
||||
virtual void onExit() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : TransitionProgress();
|
||||
TransitionProgress();
|
||||
virtual ~TransitionProgress() {}
|
||||
|
||||
protected:
|
||||
|
@ -91,12 +91,10 @@ public:
|
|||
*/
|
||||
static TransitionProgressRadialCCW* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressRadialCCW()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressRadialCCW() {}
|
||||
virtual ~TransitionProgressRadialCCW() {}
|
||||
|
||||
protected:
|
||||
|
@ -121,12 +119,10 @@ public:
|
|||
*/
|
||||
static TransitionProgressRadialCW* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressRadialCW()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressRadialCW() {}
|
||||
virtual ~TransitionProgressRadialCW() {}
|
||||
|
||||
protected:
|
||||
|
@ -151,12 +147,10 @@ public:
|
|||
*/
|
||||
static TransitionProgressHorizontal* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressHorizontal()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressHorizontal() {}
|
||||
virtual ~TransitionProgressHorizontal() {}
|
||||
|
||||
protected:
|
||||
|
@ -180,12 +174,10 @@ public:
|
|||
*/
|
||||
static TransitionProgressVertical* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressVertical()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressVertical() {}
|
||||
virtual ~TransitionProgressVertical() {}
|
||||
|
||||
protected:
|
||||
|
@ -209,12 +201,10 @@ public:
|
|||
*/
|
||||
static TransitionProgressInOut* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressInOut()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressInOut() {}
|
||||
virtual ~TransitionProgressInOut() {}
|
||||
|
||||
protected:
|
||||
|
@ -240,12 +230,10 @@ public:
|
|||
*/
|
||||
static TransitionProgressOutIn* create(float t, Scene* scene);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressOutIn()
|
||||
{}
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
TransitionProgressOutIn() {}
|
||||
virtual ~TransitionProgressOutIn() {}
|
||||
|
||||
protected:
|
||||
|
|
|
@ -130,9 +130,7 @@ public:
|
|||
const ValueMap* getKeyFrameUserInfo(int keyFrame) const;
|
||||
ValueMap* getKeyFrameUserInfo(int keyFrame);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
Animate3D();
|
||||
Animate3D();
|
||||
virtual ~Animate3D();
|
||||
|
||||
void removeFromMap();
|
||||
|
|
|
@ -84,7 +84,7 @@ public:
|
|||
/**get the bone Curves set*/
|
||||
const hlookup::string_map<Curve*>& getBoneCurves() const { return _boneCurves; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Animation3D();
|
||||
Animation3D();
|
||||
virtual ~Animation3D();
|
||||
/**init Animation3D from bundle data*/
|
||||
bool init(const Animation3DData& data);
|
||||
|
|
|
@ -79,9 +79,7 @@ public:
|
|||
/**get end time*/
|
||||
float getEndTime() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
AnimationCurve();
|
||||
AnimationCurve();
|
||||
virtual ~AnimationCurve();
|
||||
|
||||
/**
|
||||
|
|
|
@ -59,9 +59,7 @@ public:
|
|||
virtual const Mat4& getNodeToParentTransform() const override;
|
||||
virtual void visit(Renderer* renderer, const Mat4& parentTransform, uint32_t parentFlags) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
AttachNode();
|
||||
AttachNode();
|
||||
virtual ~AttachNode();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -102,7 +102,7 @@ public:
|
|||
*/
|
||||
virtual void draw(Renderer* renderer, const Mat4& transform, uint32_t flags) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : BillBoard();
|
||||
BillBoard();
|
||||
virtual ~BillBoard();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -177,7 +177,7 @@ protected:
|
|||
*/
|
||||
Reference* seekToFirstType(unsigned int type, std::string_view id = "");
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Bundle3D();
|
||||
Bundle3D();
|
||||
virtual ~Bundle3D();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -240,9 +240,7 @@ public:
|
|||
|
||||
std::string getTextureFileName() { return _texFile; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
Mesh();
|
||||
Mesh();
|
||||
virtual ~Mesh();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -82,9 +82,7 @@ public:
|
|||
/**get root bone of the skin*/
|
||||
Bone3D* getRootBone() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
MeshSkin();
|
||||
MeshSkin();
|
||||
|
||||
~MeshSkin();
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
|
||||
void setIndexData(const MeshData::IndexArray& indexdata);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : MeshIndexData();
|
||||
MeshIndexData();
|
||||
virtual ~MeshIndexData();
|
||||
|
||||
protected:
|
||||
|
@ -138,7 +138,7 @@ public:
|
|||
|
||||
void setVertexData(const std::vector<float>& vertexData);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : MeshVertexData();
|
||||
MeshVertexData();
|
||||
virtual ~MeshVertexData();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -155,7 +155,7 @@ public:
|
|||
*/
|
||||
const Vec3& getSweepAxis() const { return _sweepAxis; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : MotionStreak3D();
|
||||
MotionStreak3D();
|
||||
virtual ~MotionStreak3D();
|
||||
|
||||
/** initializes a motion streak with fade in seconds, minimum segments, stroke's width, color and texture filename
|
||||
|
|
|
@ -202,9 +202,7 @@ public:
|
|||
/**refresh bone world matrix*/
|
||||
void updateBoneMatrix();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
Skeleton3D();
|
||||
Skeleton3D();
|
||||
|
||||
~Skeleton3D();
|
||||
|
||||
|
|
|
@ -74,11 +74,10 @@ public:
|
|||
/** reload sky box after GLESContext reconstructed.*/
|
||||
void reload();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
Skybox();
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
Skybox();
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
|
|
|
@ -207,9 +207,7 @@ public:
|
|||
*/
|
||||
const Vector<Mesh*>& getMeshes() const { return _meshes; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
Sprite3D();
|
||||
Sprite3D();
|
||||
virtual ~Sprite3D();
|
||||
|
||||
virtual bool init() override;
|
||||
|
@ -331,7 +329,7 @@ public:
|
|||
/**remove all the SpriteData from Sprite3D*/
|
||||
void removeAllSprite3DData();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Sprite3DCache();
|
||||
Sprite3DCache();
|
||||
~Sprite3DCache();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -172,9 +172,7 @@ public:
|
|||
/**remove unused spritematerial*/
|
||||
void removeUnusedSprite3DMaterial();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
Sprite3DMaterialCache();
|
||||
Sprite3DMaterialCache();
|
||||
~Sprite3DMaterialCache();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -468,7 +468,7 @@ public:
|
|||
*/
|
||||
std::vector<float> getHeightData() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Terrain();
|
||||
Terrain();
|
||||
virtual ~Terrain();
|
||||
bool initWithTerrainData(TerrainData& parameter, CrackFixedType fixedType);
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ public:
|
|||
*/
|
||||
void enqueue(AsyncTaskPool::TaskType type, std::function<void()> task);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : AsyncTaskPool();
|
||||
AsyncTaskPool();
|
||||
~AsyncTaskPool();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -56,9 +56,8 @@ public:
|
|||
CUSTOM
|
||||
};
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/** Constructor */
|
||||
Event(Type type);
|
||||
/** Constructor */
|
||||
Event(Type type);
|
||||
|
||||
public:
|
||||
/** Destructor.
|
||||
|
|
|
@ -68,12 +68,11 @@ public:
|
|||
|
||||
typedef std::string ListenerID;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* Constructor
|
||||
* @js ctor
|
||||
*/
|
||||
EventListener();
|
||||
/**
|
||||
* Constructor
|
||||
* @js ctor
|
||||
*/
|
||||
EventListener();
|
||||
|
||||
/**
|
||||
* Initializes event with type and callback function
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
virtual EventListenerAcceleration* clone() override;
|
||||
virtual bool checkAvailable() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EventListenerAcceleration();
|
||||
EventListenerAcceleration();
|
||||
|
||||
bool init(const std::function<void(Acceleration*, Event* event)>& callback);
|
||||
|
||||
|
|
|
@ -72,9 +72,8 @@ public:
|
|||
virtual bool checkAvailable() override;
|
||||
virtual EventListenerCustom* clone() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/** Constructor */
|
||||
EventListenerCustom();
|
||||
/** Constructor */
|
||||
EventListenerCustom();
|
||||
|
||||
/** Initializes event with type and callback function */
|
||||
bool init(std::string_view listenerId, const std::function<void(EventCustom*)>& callback);
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
public:
|
||||
std::function<void(ui::Widget*, ui::Widget*)> onFocusChanged;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EventListenerFocus();
|
||||
EventListenerFocus();
|
||||
bool init();
|
||||
|
||||
friend class EventDispatcher;
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
|
||||
std::function<void(EventKeyboard::KeyCode, Event*)> onKeyPressed;
|
||||
std::function<void(EventKeyboard::KeyCode, Event*)> onKeyReleased;
|
||||
CC_CONSTRUCTOR_ACCESS : EventListenerKeyboard();
|
||||
EventListenerKeyboard();
|
||||
bool init();
|
||||
};
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
std::function<void(EventMouse* event)> onMouseMove;
|
||||
std::function<void(EventMouse* event)> onMouseScroll;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EventListenerMouse();
|
||||
EventListenerMouse();
|
||||
bool init();
|
||||
};
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
ccTouchCallback onTouchEnded;
|
||||
ccTouchCallback onTouchCancelled;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EventListenerTouchOneByOne();
|
||||
EventListenerTouchOneByOne();
|
||||
bool init();
|
||||
|
||||
private:
|
||||
|
@ -123,7 +123,7 @@ public:
|
|||
ccTouchesCallback onTouchesEnded;
|
||||
ccTouchesCallback onTouchesCancelled;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : EventListenerTouchAllAtOnce();
|
||||
EventListenerTouchAllAtOnce();
|
||||
bool init();
|
||||
|
||||
private:
|
||||
|
|
|
@ -332,19 +332,6 @@ THE SOFTWARE.
|
|||
# endif
|
||||
#endif
|
||||
|
||||
/** @def CC_CONSTRUCTOR_ACCESS
|
||||
* Indicate the init functions access modifier. If value equals to protected, then these functions are protected.
|
||||
* If value equals to public, these functions are public,
|
||||
* protected by default.
|
||||
*/
|
||||
#ifndef CC_CONSTRUCTOR_ACCESS
|
||||
# ifdef CC_ENABLE_SCRIPT_BINDING
|
||||
# define CC_CONSTRUCTOR_ACCESS public
|
||||
# else
|
||||
# define CC_CONSTRUCTOR_ACCESS protected
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef CC_FILEUTILS_APPLE_ENABLE_OBJC
|
||||
# define CC_FILEUTILS_APPLE_ENABLE_OBJC 1
|
||||
#endif
|
||||
|
|
|
@ -95,7 +95,7 @@ public:
|
|||
*/
|
||||
void findPath(const Vec3& start, const Vec3& end, std::vector<Vec3>& pathPoints);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : NavMesh();
|
||||
NavMesh();
|
||||
virtual ~NavMesh();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -198,7 +198,7 @@ public:
|
|||
/** get current velocity */
|
||||
Vec3 getVelocity() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : NavMeshAgent();
|
||||
NavMeshAgent();
|
||||
virtual ~NavMeshAgent();
|
||||
|
||||
private:
|
||||
|
|
|
@ -94,7 +94,7 @@ public:
|
|||
/** synchronize parameter to node. */
|
||||
void syncToNode();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : NavMeshObstacle();
|
||||
NavMeshObstacle();
|
||||
virtual ~NavMeshObstacle();
|
||||
|
||||
bool initWith(float radius, float height);
|
||||
|
|
|
@ -125,7 +125,7 @@ public:
|
|||
*/
|
||||
void syncPhysicsToNode();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DComponent();
|
||||
Physics3DComponent();
|
||||
|
||||
protected:
|
||||
void preSimulate();
|
||||
|
|
|
@ -179,7 +179,7 @@ public:
|
|||
*/
|
||||
cocos2d::Vec3 getPivotPointInB() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DPointToPointConstraint();
|
||||
Physics3DPointToPointConstraint();
|
||||
virtual ~Physics3DPointToPointConstraint();
|
||||
bool init(Physics3DRigidBody* rbA, const cocos2d::Vec3& pivotPointInA);
|
||||
bool init(Physics3DRigidBody* rbA,
|
||||
|
@ -321,7 +321,7 @@ public:
|
|||
/**set use frame offset*/
|
||||
void setUseFrameOffset(bool frameOffsetOnOff);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DHingeConstraint() { _type = ConstraintType::HINGE; }
|
||||
Physics3DHingeConstraint() { _type = ConstraintType::HINGE; }
|
||||
virtual ~Physics3DHingeConstraint() {}
|
||||
};
|
||||
|
||||
|
@ -434,7 +434,7 @@ public:
|
|||
/**set frames for rigid body A and B*/
|
||||
void setFrames(const cocos2d::Mat4& frameA, const cocos2d::Mat4& frameB);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DSliderConstraint() { _type = ConstraintType::SLIDER; }
|
||||
Physics3DSliderConstraint() { _type = ConstraintType::SLIDER; }
|
||||
virtual ~Physics3DSliderConstraint() {}
|
||||
};
|
||||
|
||||
|
@ -531,7 +531,7 @@ public:
|
|||
/**get B's frame offset*/
|
||||
cocos2d::Mat4 getFrameOffsetB() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DConeTwistConstraint() { _type = ConstraintType::CONE_TWIST; }
|
||||
Physics3DConeTwistConstraint() { _type = ConstraintType::CONE_TWIST; }
|
||||
virtual ~Physics3DConeTwistConstraint() {}
|
||||
};
|
||||
|
||||
|
@ -606,7 +606,7 @@ public:
|
|||
/**set use frame offset*/
|
||||
void setUseFrameOffset(bool frameOffsetOnOff) const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3D6DofConstraint() { _type = ConstraintType::SIX_DOF; }
|
||||
Physics3D6DofConstraint() { _type = ConstraintType::SIX_DOF; }
|
||||
virtual ~Physics3D6DofConstraint() {}
|
||||
};
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ public:
|
|||
/** Get the mask of Physics3DObject. */
|
||||
unsigned int getMask() const { return _mask; };
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DObject()
|
||||
Physics3DObject()
|
||||
: _isEnabled(true), _type(PhysicsObjType::UNKNOWN), _userData(nullptr), _physicsWorld(nullptr), _mask(-1)
|
||||
{}
|
||||
virtual ~Physics3DObject() {}
|
||||
|
@ -331,7 +331,7 @@ public:
|
|||
/** Active or inactive. */
|
||||
void setActive(bool active);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DRigidBody();
|
||||
Physics3DRigidBody();
|
||||
virtual ~Physics3DRigidBody();
|
||||
|
||||
bool init(Physics3DRigidBodyDes* info);
|
||||
|
@ -480,7 +480,7 @@ public:
|
|||
/** Set a callback when trigger exit. */
|
||||
std::function<void(Physics3DObject* otherObject)> onTriggerExit;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DCollider();
|
||||
Physics3DCollider();
|
||||
virtual ~Physics3DCollider();
|
||||
|
||||
bool init(Physics3DColliderDes* info);
|
||||
|
|
|
@ -135,7 +135,7 @@ public:
|
|||
btCollisionShape* getbtShape() const { return _btShape; }
|
||||
# endif
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Physics3DShape();
|
||||
Physics3DShape();
|
||||
~Physics3DShape();
|
||||
|
||||
bool initBox(const cocos2d::Vec3& ext);
|
||||
|
|
|
@ -146,9 +146,7 @@ public:
|
|||
const cocos2d::Mat4& endTransform,
|
||||
HitResult* result);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
Physics3DWorld();
|
||||
Physics3DWorld();
|
||||
virtual ~Physics3DWorld();
|
||||
|
||||
bool init(Physics3DWorldDes* info);
|
||||
|
|
|
@ -71,7 +71,7 @@ public:
|
|||
/** synchronize physics transformation to node. */
|
||||
void syncPhysicsToNode();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : PhysicsSprite3D();
|
||||
PhysicsSprite3D();
|
||||
virtual ~PhysicsSprite3D();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -74,11 +74,11 @@ public:
|
|||
|
||||
/** reload texture cube after GLESContext reconstructed.*/
|
||||
bool reloadTexture();
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
TextureCube();
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
TextureCube();
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
|
|
|
@ -173,7 +173,7 @@ public:
|
|||
ResourceData getCrossNormalFile();
|
||||
ResourceData getCrossDisabledFile();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
virtual bool init(std::string_view backGround,
|
||||
std::string_view backGroundSelected,
|
||||
std::string_view cross,
|
||||
|
|
|
@ -313,7 +313,7 @@ public:
|
|||
ResourceData getPressedFile();
|
||||
ResourceData getDisabledFile();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
virtual bool init(std::string_view normalImage,
|
||||
std::string_view selectedImage = "",
|
||||
std::string_view disableImage = "",
|
||||
|
|
|
@ -72,10 +72,8 @@ public:
|
|||
*/
|
||||
static HBox* create(const Vec2& size);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
// initializes state of widget.
|
||||
virtual bool
|
||||
init() override;
|
||||
// initializes state of widget.
|
||||
virtual bool init() override;
|
||||
virtual bool initWithSize(const Vec2& size);
|
||||
};
|
||||
|
||||
|
|
|
@ -146,10 +146,8 @@ public:
|
|||
|
||||
ResourceData getRenderFile();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
// initializes state of widget.
|
||||
virtual bool
|
||||
init() override;
|
||||
// initializes state of widget.
|
||||
virtual bool init() override;
|
||||
virtual bool init(std::string_view imageFileName, TextureResType texType = TextureResType::LOCAL);
|
||||
|
||||
protected:
|
||||
|
|
|
@ -464,10 +464,8 @@ public:
|
|||
|
||||
ResourceData getRenderFile();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
// override "init" method of widget.
|
||||
virtual bool
|
||||
init() override;
|
||||
// override "init" method of widget.
|
||||
virtual bool init() override;
|
||||
|
||||
protected:
|
||||
// override "onSizeChanged" method of widget.
|
||||
|
|
|
@ -427,7 +427,7 @@ public:
|
|||
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
|
||||
protected:
|
||||
virtual void handleReleaseLogic(Touch* touch) override;
|
||||
|
|
|
@ -326,7 +326,7 @@ public:
|
|||
|
||||
void setAutoScrollStopEpsilon(float epsilon);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
|
||||
// override methods
|
||||
virtual void doLayout() override;
|
||||
|
|
|
@ -75,10 +75,8 @@ public:
|
|||
*/
|
||||
static RelativeBox* create(const Vec2& size);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
// initializes state of widget.
|
||||
virtual bool
|
||||
init() override;
|
||||
// initializes state of widget.
|
||||
virtual bool init() override;
|
||||
virtual bool initWithSize(const Vec2& size);
|
||||
};
|
||||
|
||||
|
|
|
@ -582,7 +582,7 @@ public:
|
|||
*/
|
||||
void setOpenUrlHandler(const OpenUrlHandler& handleOpenUrl);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
|
||||
bool initWithXML(std::string_view xml,
|
||||
const ValueMap& defaults = ValueMap(),
|
||||
|
|
|
@ -569,7 +569,7 @@ public:
|
|||
*/
|
||||
bool isAutoScrolling() const { return _autoScrolling; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
|
||||
protected:
|
||||
enum class MoveDirection
|
||||
|
|
|
@ -147,7 +147,7 @@ public:
|
|||
*/
|
||||
void onTouchEnded();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
|
||||
private:
|
||||
float calculateLength(float innerContainerMeasure, float scrollViewMeasure, float outOfBoundaryValue);
|
||||
|
|
|
@ -281,7 +281,7 @@ public:
|
|||
ResourceData getBallPressedFile();
|
||||
ResourceData getBallDisabledFile();
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
|
||||
protected:
|
||||
virtual void initRenderer() override;
|
||||
|
|
|
@ -341,7 +341,7 @@ public:
|
|||
*/
|
||||
virtual const BlendFunc& getBlendFunc() const override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
virtual bool init(std::string_view textContent, std::string_view fontName, float fontSize);
|
||||
|
||||
protected:
|
||||
|
|
|
@ -605,7 +605,7 @@ public:
|
|||
*/
|
||||
void setCursorFromPoint(const Vec2& point, const Camera* camera);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : virtual bool init() override;
|
||||
virtual bool init() override;
|
||||
|
||||
protected:
|
||||
virtual void initRenderer() override;
|
||||
|
|
|
@ -72,10 +72,8 @@ public:
|
|||
*/
|
||||
static VBox* create(const Vec2& size);
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
// initializes state of widget.
|
||||
virtual bool
|
||||
init() override;
|
||||
// initializes state of widget.
|
||||
virtual bool init() override;
|
||||
virtual bool initWithSize(const Vec2& size);
|
||||
};
|
||||
|
||||
|
|
|
@ -233,14 +233,13 @@ public:
|
|||
void setContentSize(const Size& contentSize) override;
|
||||
# endif
|
||||
|
||||
VideoPlayer();
|
||||
virtual ~VideoPlayer();
|
||||
|
||||
protected:
|
||||
virtual cocos2d::ui::Widget* createCloneInstance() override;
|
||||
virtual void copySpecialProperties(Widget* model) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : VideoPlayer();
|
||||
virtual ~VideoPlayer();
|
||||
|
||||
protected:
|
||||
# if CC_VIDEOPLAYER_DEBUG_DRAW
|
||||
DrawNode* _debugDrawNode;
|
||||
# endif
|
||||
|
|
|
@ -227,6 +227,12 @@ public:
|
|||
virtual void onEnter() override;
|
||||
virtual void onExit() override;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
WebView();
|
||||
virtual ~WebView();
|
||||
|
||||
protected:
|
||||
virtual cocos2d::ui::Widget* createCloneInstance() override;
|
||||
virtual void copySpecialProperties(Widget* model) override;
|
||||
|
@ -236,17 +242,6 @@ protected:
|
|||
ccWebViewCallback _onDidFailLoading = nullptr;
|
||||
ccWebViewCallback _onJSCallback = nullptr;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
WebView();
|
||||
|
||||
/**
|
||||
* Default destructor.
|
||||
*/
|
||||
virtual ~WebView();
|
||||
|
||||
private:
|
||||
WebViewImpl* _impl = nullptr;
|
||||
friend class WebViewImpl;
|
||||
|
|
|
@ -716,9 +716,7 @@ public:
|
|||
*/
|
||||
bool isLayoutComponentEnabled() const;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
|
||||
friend class PageView;
|
||||
friend class PageView;
|
||||
|
||||
// initializes state of widget.
|
||||
virtual bool init() override;
|
||||
|
|
|
@ -181,11 +181,10 @@ public:
|
|||
virtual bool isOpacityModifyRGB() const override;
|
||||
virtual void setOpacityModifyRGB(bool bOpacityModifyRGB) override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Control();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Control();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -191,11 +191,10 @@ public:
|
|||
std::string_view getCurrentTitle() const { return _currentTitle; };
|
||||
std::string getCurrentTitle() { return _currentTitle; };
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS :
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ControlButton();
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ControlButton();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
|
||||
bool isEnabled() const { return _isEnabled; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Particle3DAffector();
|
||||
Particle3DAffector();
|
||||
virtual ~Particle3DAffector();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
|
||||
bool isEnabled() const { return _isEnabled; }
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Particle3DEmitter();
|
||||
Particle3DEmitter();
|
||||
virtual ~Particle3DEmitter();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -79,7 +79,7 @@ public:
|
|||
|
||||
virtual void reset() {}
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS : Particle3DRender();
|
||||
Particle3DRender();
|
||||
virtual ~Particle3DRender();
|
||||
|
||||
protected:
|
||||
|
@ -100,7 +100,7 @@ public:
|
|||
virtual void render(Renderer* renderer, const Mat4& transform, ParticleSystem3D* particleSystem) override;
|
||||
|
||||
virtual void reset() override;
|
||||
CC_CONSTRUCTOR_ACCESS : Particle3DQuadRender();
|
||||
Particle3DQuadRender();
|
||||
virtual ~Particle3DQuadRender();
|
||||
|
||||
protected:
|
||||
|
@ -150,7 +150,7 @@ public:
|
|||
virtual void render(Renderer* renderer, const Mat4& transform, ParticleSystem3D* particleSystem) override;
|
||||
|
||||
virtual void reset() override;
|
||||
CC_CONSTRUCTOR_ACCESS : Particle3DModelRender();
|
||||
Particle3DModelRender();
|
||||
virtual ~Particle3DModelRender();
|
||||
|
||||
protected:
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue