| cocos2d-x 3.0 | 
   
)全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
弃用列表
- 类 __CCCallFuncND
 - 使用 CallFuncN 替代
 - 类 __CCCallFuncO
 - 使用 CallFuncN 替代。
 - 成员 __NotificationCenter::purgeNotificationCenter (void)
 - 废弃使用 destroyInstance() 替代
 - 成员 __NotificationCenter::sharedNotificationCenter (void)
 - 废弃使用 getInstance() 替代
 - 成员 ActionManager::numberOfRunningActionsInTarget (Node *target) const
 - 使用getNumberOfRunningActionsInTarget() 代替
 - 成员 Animation::addSpriteFrameWithFileName (const std::string &filename)
 - . 使用 addSpriteFrameWithFile() 替代此方法. CC_DEPRECATED_ATTRIBUTE 标记此方法不建议使用. 在将来的cocos2d-x中,此方法很有可能会被抛弃,现在保留这个方法只为了向下兼容.
 - 成员 AnimationCache::animationByName (const std::string &name)
 - . 使用getAnimation() 替代 NA NA
 - 成员 AnimationCache::purgeSharedAnimationCache ()
 - 使用 destroyInstance() 代替
 - 成员 AnimationCache::removeAnimationByName (const std::string &name)
 - .
 - 成员 AnimationCache::sharedAnimationCache ()
 - 使用getInstance() 代替
 - 成员 Application::getResourceRootPath (void)
 - Please use FileUtils::getInstance()->getSearchPaths() instead.
 
Please use FileUtils::getInstance()->getSearchPaths() instead.
Please use FileUtils::getInstance()->getSearchPaths() instead.
Please use CCFileUtils::sharedFileUtils()->getSearchPaths() instead.
- 成员 Application::setResourceRootPath (const std::string &rootResDir)
 - Please use FileUtils::getInstance()->setSearchPaths() instead.
 
Please use FileUtils::getInstance()->setSearchPaths() instead.
Please use FileUtils::getInstance()->setSearchPaths() instead.
Please use CCFileUtils::sharedFileUtils()->setSearchPaths() instead.
- 成员 Application::sharedApplication ()
 - 用getInstance()替代
 
用getInstance()代替
Use getInstance() instead
Use getInstance() instead
Use getInstance() instead
- 成员 ArmatureAnimation::playByIndex (int animationIndex, int durationTo=-1, int loop=-1)
 , 请使用playByIndex
- 参数
 
animationIndex想要播放的动画索引
- 成员 ArmatureDataManager::purge ()
 - 用destoryInstance() 替换
 - 成员 ArmatureDataManager::sharedArmatureDataManager ()
 - 用getInstance()替换
 - 成员 CallFunc::create (Ref *target, SEL_CallFunc selector)
 - Use the std::function API instead. NA NA
 - 成员 CallFunc::initWithTarget (Ref *target)
 - 使用 std::function 替代
 - 成员 CallFuncN::create (Ref *target, SEL_CallFuncN selector)
 - 使用 std::function API 替代
 - 成员 CallFuncN::initWithTarget (Ref *target, SEL_CallFuncN selector)
 - 使用 std::function API 替代
 - 成员 CCBAnimationManager::runAnimations (const char *pName, float fTweenDuration)
 - 这个接口将在不久被移除掉
 - 成员 CCBAnimationManager::runAnimations (const char *pName)
 - 这个接口将在不久被移除掉
 - 成员 CCBAnimationManager::runAnimations (int nSeqId, float fTweenDuraiton)
 - 这个接口将在不久被移除掉
 - 成员 Clonable::copy () const
 - 使用 clone() 替代
 - 成员 cocos2d::cc_utf16_to_utf8 (const unsigned short str, int len=-1, long items_read=nullptr, long *items_written=nullptr)
 - 请使用
StringUtils::UTF16ToUTF8来代替- 返回
 - 返回值是一个指针,指向新分配的UTF-8格式字符串。这个值必须用
delete[]释放。如果有错误发生,返回NULL 
 - 成员 cocos2d::cc_utf16_vec_from_utf16_str (const unsigned short *str)
 - 请使用
StringUtils::getChar16VectorFromUTF16String代替 - 成员 cocos2d::cc_utf8_find_last_not_char (const std::vector< unsigned short > &str, unsigned short c)
 - 请使用
StringUtils::getIndexOfLastNotChar16代替- 返回
 - 返回值是最后一个不同于c的字符的索引 .
 
 - 成员 cocos2d::cc_utf8_strlen (const char *p, int max=-1)
 - 请使用
StringUtils::getCharacterCountInUTF8String代替- 返回
 - 返回值是给定字符的字符串长度
 
 - 成员 cocos2d::cc_utf8_to_utf16 (const char str_old, int length=-1, int rUtf16Size=nullptr)
 - 请使用
StringUtils::UTF8ToUTF16代替- 返回
 - 返回值是新创建的utf16格式字符串,必须用
delete[]释放。如果有错误发生,返回NULL 
 - 成员 cocos2d::cc_utf8_trim_ws (std::vector< unsigned short > *str)
 - 请使用
StringUtils::trimUTF16Vector代替 - 成员 cocos2d::cc_wcslen (const unsigned short *str)
 - 请使用c++11 
std::u16string::length来代替,不要直接使用unsigned short* - 成员 cocos2d::iscjk_unicode (unsigned short ch)
 - 请使用
StringUtils::isCJKUnicode代替 - 成员 cocos2d::isspace_unicode (unsigned short ch)
 - 请使用
StringUtils::isUnicodeSpace代替 - 成员 Configuration::purgeConfiguration ()
 - 使用 destroyInstance() 代替此方法
 - 成员 Configuration::sharedConfiguration ()
 - 使用 getInstance() 代替此方法
 - 成员 DataReaderHelper::sharedDataReaderHelper ()
 - Use getInstance() instead
 - 成员 Director::sharedDirector ()
 - 使用 getInstance() 替代
 - 成员 FileUtils::purgeFileUtils ()
 - 使用destroyInstance() 代替
 - 成员 FileUtils::sharedFileUtils ()
 - 使用getInstance()代替
 - 成员 FileUtilsAndroid::getFileData (const std::string &filename, const char mode, ssize_t size) override
 - 请使用FileUtils::getDataFromFile or FileUtils::getStringFromFile 代替.
 - 成员 GLProgramCache::purgeSharedShaderCache ()
 - 用 destroyInstance() 替代
 - 成员 GLProgramCache::sharedShaderCache ()
 - 用 getInstance() 替代
 - 成员 Grid3D::originalVertex (const Vec2 &pos) const
 - 使用方法getOriginalVertex()替代 NA NA
 - 成员 Grid3D::vertex (const Vec2 &pos) const
 - 使用方法getVertex()替代 NA NA
 - 成员 Grid3DAction::originalVertex (const Vec2 &position)
 - 使用getOriginalVertex()代替 NA NA
 - 成员 Grid3DAction::vertex (const Vec2 &position)
 - 适应getVertex()代替 NA NA
 - 成员 InputDelegate::didAccelerate (cocos2d::Acceleration *accelerationValue) final
 - 请重写onAcceleration
 - 成员 Layer::didAccelerate (Acceleration *accelerationValue) final
 - 请重写onAcceleration方法
 - 成员 Layer::keyBackClicked () final
 - 请重写onKeyReleased并且检查 KeyboardEvent::KeyCode::Menu(KEY_BACKSPACE) 的键盘码来代替.
 - 成员 MenuItemToggle::selectedItem ()
 - 已弃用,使用 getSelectedItem() 替代
 - 成员 Node::boundingBox () const
 - 使用 getBoundingBox 来代替
 - 成员 Node::getGLServerState () const
 - 不再需要。 NA NA
 - 成员 Node::nodeToParentTransform () const
 - use getNodeToParentTransform() instead
 - 成员 Node::nodeToWorldTransform () const
 - Use getNodeToWorldTransform() instead
 - 成员 Node::numberOfRunningActions () const
 - Use getNumberOfRunningActions() instead
 - 成员 Node::parentToNodeTransform () const
 - Use getParentToNodeTransform() instead
 - 成员 Node::setGLServerState (int serverState)
 - 不再需要 NA NA
 - 成员 Node::worldToNodeTransform () const
 - Use getWorldToNodeTransform() instead
 - 成员 NODE_FUNC (TYPE)
 - 该接口迟早会被弃用.
 - 成员 Scheduler::isScheduledForTarget (Ref *target, SEL_SCHEDULE selector)
 - Please use 'Scheduler::isScheduled' instead. 
- 自从
 - v0.99.3
 
 - 成员 Scheduler::scheduleSelector (SEL_SCHEDULE selector, Ref *target, float interval, unsigned int repeat, float delay, bool paused)
 - Please use 'Scheduler::schedule' instead. 
- 自从
 - v0.99.3, repeat and delay added in v1.1
 
 - 成员 Scheduler::scheduleSelector (SEL_SCHEDULE selector, Ref *target, float interval, bool paused)
 - Please use 'Scheduler::schedule' instead.
 - 成员 Scheduler::scheduleUpdateForTarget (T *target, int priority, bool paused)
 - Please use 'Scheduler::scheduleUpdate' instead. 
- 自从
 - v0.99.3
 
 - 成员 Scheduler::unscheduleSelector (SEL_SCHEDULE selector, Ref *target)
 - Please use 'Scheduler::unschedule' instead. 
- 自从
 - v0.99.3
 
 - 成员 Scheduler::unscheduleUpdateForTarget (Ref *target)
 - Please use 'Scheduler::unscheduleUpdate' instead. 
- 自从
 - v0.99.3
 
 - 成员 Sprite::displayFrame () const
 - 使用
getSpriteFrame()方法替代 - 成员 Sprite::getDisplayFrame () const
 - 使用
getSpriteFrame()方法替代 - 成员 Sprite::isFlipX ()
 - 使用isFlippedX()替代 NA NA
 - 成员 Sprite::isFlipY ()
 - 使用isFlippedY()替代
 - 成员 Sprite::setDisplayFrame (SpriteFrame *newFrame)
 - 使用
setSpriteFrame()方法替代 - 成员 Sprite::setFlipX (bool flippedX)
 - 使用setFlippedX()替代
 - 成员 Sprite::setFlipY (bool flippedY)
 - 使用setFlippedY()替代
 - 成员 SpriteFrameCache::purgeSharedSpriteFrameCache ()
 - Use destroyInstance() instead
 - 成员 SpriteFrameCache::sharedSpriteFrameCache ()
 - Use getInstance() instead
 - 成员 SpriteFrameCache::spriteFrameByName (const std::string &name)
 - use getSpriteFrameByName() instead
 - 成员 SpriteFrameCacheHelper::sharedSpriteFrameCacheHelper ()
 - 用getInstance()代替此函数
 - 成员 TextureCache::purgeSharedTextureCache ()
 - 使用destroyInstance()作为替代
 - 成员 TextureCache::sharedTextureCache ()
 - 使用getInstance()作为替代
 - 成员 TiledGrid3DAction::originalTile (const Vec2 &position)
 - 使用getOriginalTile()代替 NA NA
 - 成员 TiledGrid3DAction::tile (const Vec2 &position)
 - 使用getTile() 代替 NA NA
 - 成员 UserDefault::sharedUserDefault ()
 - . 使用getInstace()代替 NA NA
 - 成员 Widget::isFlipX ()
 - 使用 isFlippedX() 作为替代
 - 成员 Widget::isFlipY ()
 - 使用 isFlippedY() 作为替代
 - 成员 Widget::setFlipX (bool flipX)
 - 使用 setFlippedX() 作为替代
 - 成员 Widget::setFlipY (bool flipY)
 - 使用 setFlippedY() 作为替代
 

