cocos2d-x tool class