Projects > cpp > Issues > Feature #3258

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Constructors should be protected

Feature #3258 [Closed]
ricardo 2013-11-22 00:00 . Updated almost 10 years ago

1st part)
Scene Graph objects like Node, Scene, Sprite, etc… should only be created with the createXXX methods.

The constructor, destructor and the initXXX methods should be moved to the protected: 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

ricardo 2013-11-22 00:01
  • Subject changed from Constructors should be procted to Constructors should be protected
ricardo 2013-11-22 00:03
  • Assignee set to ricardo
zhangxm 2013-12-30 06:01
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2013-11-21
Priority:Normal
Due date:
Assignee:ricardo
% Done:

0%

Category:-
Target version:3.0-beta