some utility class for cocos2d-x