Code conforms with the cocos2d-x c++ guidelines

Code conforms with the cocos2d-x c++ guidelines