diff --git a/cocos/2d/CCActionInterval.h b/cocos/2d/CCActionInterval.h index d112f04e1f..fa538483be 100644 --- a/cocos/2d/CCActionInterval.h +++ b/cocos/2d/CCActionInterval.h @@ -80,10 +80,11 @@ public: virtual ActionInterval* reverse() const override = 0; virtual ActionInterval *clone() const override = 0; -protected: +CC_CONSTRUCTOR_ACCESS: /** initializes the action */ bool initWithDuration(float d); +protected: float _elapsed; bool _firstTick; }; @@ -588,6 +589,8 @@ public: CC_CONSTRUCTOR_ACCESS: JumpTo() {} virtual ~JumpTo() {} + +private: CC_DISALLOW_COPY_AND_ASSIGN(JumpTo); };