[cocos2d] replace setter-only properties by methods