We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Constructors should be protected
Constructors should be protected
Feature #3258 [Closed]
We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
1st part)
Scene Graph objects like
Node
,Scene
,Sprite
, etc… should only be created with thecreateXXX
methods.The constructor, destructor and the
initXXX
methods should be moved to theprotected:
part of the class.2nd part):
Action
object should also have this functionality.Discussion here:
http://www.cocos2d-x.org/forums/6/topics/34011?r=34092\#message-34092
Patch here:
https://github.com/cocos2d/cocos2d-x/pull/4351