当前位置: 首页>>代码示例>>C++>>正文


C++ CC_UNUSED_PARAM函数代码示例

本文整理汇总了C++中CC_UNUSED_PARAM函数的典型用法代码示例。如果您正苦于以下问题:C++ CC_UNUSED_PARAM函数的具体用法?C++ CC_UNUSED_PARAM怎么用?C++ CC_UNUSED_PARAM使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了CC_UNUSED_PARAM函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CC_UNUSED_PARAM

bool CCImage::initWithImageFile(const char * strPath, EImageFormat eImgFmt/* = eFmtPng*/)
{
    CC_UNUSED_PARAM(eImgFmt);
    CCFileData data(CCFileUtils::fullPathFromRelativePath(strPath), "rb");
    return initWithImageData(data.getBuffer(), data.getSize(), eImgFmt);
}
开发者ID:AfterTheRainOfStars,项目名称:cocos2d-x-qt,代码行数:6,代码来源:CCImage.cpp

示例2: CC_UNUSED_PARAM

void CCActionInstant::step(float dt) {
    CC_UNUSED_PARAM(dt);
    update(1);
}
开发者ID:fordream,项目名称:quick,代码行数:4,代码来源:CCActionInstant.cpp

示例3: endElement

    void endElement(void *ctx, const char *name)
    {
        CC_UNUSED_PARAM(ctx);
        SAXState curState = _stateStack.empty() ? SAX_DICT : _stateStack.top();
        const std::string sName((char*)name);
        if( sName == "dict" )
        {
            _stateStack.pop();
            _dictStack.pop();
            if ( !_dictStack.empty())
            {
                _curDict = _dictStack.top();
            }
        }
        else if (sName == "array")
        {
            _stateStack.pop();
            _arrayStack.pop();
            if (! _arrayStack.empty())
            {
                _curArray = _arrayStack.top();
            }
        }
        else if (sName == "true")
        {
            if (SAX_ARRAY == curState)
            {
                _curArray->push_back(Value(true));
            }
            else if (SAX_DICT == curState)
            {
                (*_curDict)[_curKey] = Value(true);
            }
        }
        else if (sName == "false")
        {
            if (SAX_ARRAY == curState)
            {
                _curArray->push_back(Value(false));
            }
            else if (SAX_DICT == curState)
            {
                (*_curDict)[_curKey] = Value(false);
            }
        }
        else if (sName == "string" || sName == "integer" || sName == "real")
        {
            if (SAX_ARRAY == curState)
            {
                if (sName == "string")
                    _curArray->push_back(Value(_curValue));
                else if (sName == "integer")
                    _curArray->push_back(Value(atoi(_curValue.c_str())));
                else
                    _curArray->push_back(Value(utils::atof(_curValue.c_str())));
            }
            else if (SAX_DICT == curState)
            {
                if (sName == "string")
                    (*_curDict)[_curKey] = Value(_curValue);
                else if (sName == "integer")
                    (*_curDict)[_curKey] = Value(atoi(_curValue.c_str()));
                else
                    (*_curDict)[_curKey] = Value(utils::atof(_curValue.c_str()));
            }

            _curValue.clear();
        }
        
        _state = SAX_NONE;
    }
开发者ID:RaoZiJian,项目名称:WarriorQuest,代码行数:71,代码来源:CCFileUtils.cpp

示例4: CC_UNUSED_PARAM

void InputDelegate::onTouchesEnded(const std::vector<Touch*>& pTouches, Event *pEvent)
{
    CC_UNUSED_PARAM(pTouches);
    CC_UNUSED_PARAM(pEvent);
}
开发者ID:0xiaohui00,项目名称:Cocos2dx-Wechat,代码行数:5,代码来源:CCInputDelegate.cpp

示例5: ccTouchEnded

 void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent) {
     CC_UNUSED_PARAM(pTouch); 
     CC_UNUSED_PARAM(pEvent);
     ScriptingCore::getInstance()->executeCustomTouchEvent(CCTOUCHENDED, 
                                                           pTouch, _mObj);
 }
开发者ID:dumganhar,项目名称:cocos2dx-watermelon-ios,代码行数:6,代码来源:cocos2d_specifics.hpp

示例6: CC_UNUSED_PARAM

void CCActionInstant::update(ccTime time) {
	CC_UNUSED_PARAM(time);
	// ignore
}
开发者ID:Avnerus,项目名称:ichigo,代码行数:4,代码来源:CCActionInstant.cpp

示例7: CC_UNUSED_PARAM

void CCAction::update(float time)
{
    CC_UNUSED_PARAM(time);
    CCLOG("[Action update]. override me");
}
开发者ID:boruis,项目名称:cocos2dx-classical,代码行数:5,代码来源:CCAction.cpp

示例8: ccTouchesBegan

 // optional
 void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent) {
     CC_UNUSED_PARAM(pTouches); 
     CC_UNUSED_PARAM(pEvent);
     ScriptingCore::getInstance()->executeCustomTouchesEvent(CCTOUCHBEGAN, 
                                                           pTouches, _mObj);
 }
开发者ID:dumganhar,项目名称:cocos2dx-watermelon-ios,代码行数:7,代码来源:cocos2d_specifics.hpp

示例9: startElement

    void startElement(void *ctx, const char *name, const char **atts)
    {
        CC_UNUSED_PARAM(ctx);
        CC_UNUSED_PARAM(atts);
        const std::string sName(name);
        if( sName == "dict" )
        {
			if(_resultType == SAX_RESULT_DICT && _rootDict.empty())
            {
                _curDict = &_rootDict;
            }

            _state = SAX_DICT;

            SAXState preState = SAX_NONE;
            if (! _stateStack.empty())
            {
                preState = _stateStack.top();
            }

            if (SAX_ARRAY == preState)
            {
                // add a new dictionary into the array
                _curArray->push_back(Value(ValueMap()));
				_curDict = &(_curArray->rbegin())->asValueMap();
            }
            else if (SAX_DICT == preState)
            {
                // add a new dictionary into the pre dictionary
                CCASSERT(! _dictStack.empty(), "The state is wrong!");
                ValueMap* preDict = _dictStack.top();
                (*preDict)[_curKey] = Value(ValueMap());
				_curDict = &(*preDict)[_curKey].asValueMap();
            }

            // record the dict state
            _stateStack.push(_state);
            _dictStack.push(_curDict);
        }
        else if(sName == "key")
        {
            _state = SAX_KEY;
        }
        else if(sName == "integer")
        {
            _state = SAX_INT;
        }
        else if(sName == "real")
        {
            _state = SAX_REAL;
        }
        else if(sName == "string")
        {
            _state = SAX_STRING;
        }
        else if (sName == "array")
        {
            _state = SAX_ARRAY;

			if (_resultType == SAX_RESULT_ARRAY && _rootArray.empty())
            {
				_curArray = &_rootArray;
            }
            SAXState preState = SAX_NONE;
            if (! _stateStack.empty())
            {
                preState = _stateStack.top();
            }

            if (preState == SAX_DICT)
            {
                (*_curDict)[_curKey] = Value(ValueVector());
				_curArray = &(*_curDict)[_curKey].asValueVector();
            }
            else if (preState == SAX_ARRAY)
            {
                CCASSERT(! _arrayStack.empty(), "The state is wrong!");
                ValueVector* preArray = _arrayStack.top();
                preArray->push_back(Value(ValueVector()));
				_curArray = &(_curArray->rbegin())->asValueVector();
            }
            // record the array state
            _stateStack.push(_state);
            _arrayStack.push(_curArray);
        }
        else
        {
            _state = SAX_NONE;
        }
    }
开发者ID:RaoZiJian,项目名称:WarriorQuest,代码行数:90,代码来源:CCFileUtils.cpp

示例10: ccTouchesCancelled

 void ccTouchesCancelled(CCSet *pTouches, CCEvent *pEvent) {
     CC_UNUSED_PARAM(pTouches); 
     CC_UNUSED_PARAM(pEvent);
     ScriptingCore::getInstance()->executeCustomTouchesEvent(CCTOUCHCANCELLED, 
                                                             pTouches, _mObj);
 }
开发者ID:dumganhar,项目名称:cocos2dx-watermelon-ios,代码行数:6,代码来源:cocos2d_specifics.hpp

示例11: CC_UNUSED_PARAM

void CCMotionStreak::setOpacityModifyRGB(bool bValue)
{
    CC_UNUSED_PARAM(bValue);
}
开发者ID:boruis,项目名称:cocos2dx-classical,代码行数:4,代码来源:CCMotionStreak.cpp

示例12: CC_UNUSED_PARAM

void CCTouchDispatcher::setPriority(int nPriority, CCTouchDelegate *pDelegate)
{
    CC_UNUSED_PARAM(nPriority);
    CC_UNUSED_PARAM(pDelegate);
	assert(0);
}
开发者ID:classfoo,项目名称:cocos2d-x,代码行数:6,代码来源:CCTouchDispatcher.cpp

示例13: CC_UNUSED_PARAM

bool EventListenerPhysicsContact::hitTest(PhysicsShape* shapeA, PhysicsShape* shapeB)
{
    CC_UNUSED_PARAM(shapeA);
    CC_UNUSED_PARAM(shapeB);
    return true;
}
开发者ID:1097195326,项目名称:GameAreas,代码行数:6,代码来源:CCPhysicsContact.cpp

示例14: CC_UNUSED_PARAM

void Spider::actionDownEnd(cocos2d::CCObject *s)
{
    Spider* spider = (Spider*)s;
    
    CC_UNUSED_PARAM(spider);
}
开发者ID:SongCF,项目名称:game-LostStar,代码行数:6,代码来源:BackgroundLayer_Forest.cpp

示例15: CC_UNUSED_PARAM

void CCParticleSystem::updateQuadWithParticle(tCCParticle* particle, const CCPoint& newPosition)
{
    CC_UNUSED_PARAM(particle);
    CC_UNUSED_PARAM(newPosition);
	// should be overriden
}
开发者ID:OrbotixInc,项目名称:cocos2d-x,代码行数:6,代码来源:CCParticleSystem.cpp


注:本文中的CC_UNUSED_PARAM函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。