本文整理汇总了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);
}
示例2: CC_UNUSED_PARAM
void CCActionInstant::step(float dt) {
CC_UNUSED_PARAM(dt);
update(1);
}
示例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;
}
示例4: CC_UNUSED_PARAM
void InputDelegate::onTouchesEnded(const std::vector<Touch*>& pTouches, Event *pEvent)
{
CC_UNUSED_PARAM(pTouches);
CC_UNUSED_PARAM(pEvent);
}
示例5: ccTouchEnded
void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent) {
CC_UNUSED_PARAM(pTouch);
CC_UNUSED_PARAM(pEvent);
ScriptingCore::getInstance()->executeCustomTouchEvent(CCTOUCHENDED,
pTouch, _mObj);
}
示例6: CC_UNUSED_PARAM
void CCActionInstant::update(ccTime time) {
CC_UNUSED_PARAM(time);
// ignore
}
示例7: CC_UNUSED_PARAM
void CCAction::update(float time)
{
CC_UNUSED_PARAM(time);
CCLOG("[Action update]. override me");
}
示例8: ccTouchesBegan
// optional
void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent) {
CC_UNUSED_PARAM(pTouches);
CC_UNUSED_PARAM(pEvent);
ScriptingCore::getInstance()->executeCustomTouchesEvent(CCTOUCHBEGAN,
pTouches, _mObj);
}
示例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;
}
}
示例10: ccTouchesCancelled
void ccTouchesCancelled(CCSet *pTouches, CCEvent *pEvent) {
CC_UNUSED_PARAM(pTouches);
CC_UNUSED_PARAM(pEvent);
ScriptingCore::getInstance()->executeCustomTouchesEvent(CCTOUCHCANCELLED,
pTouches, _mObj);
}
示例11: CC_UNUSED_PARAM
void CCMotionStreak::setOpacityModifyRGB(bool bValue)
{
CC_UNUSED_PARAM(bValue);
}
示例12: CC_UNUSED_PARAM
void CCTouchDispatcher::setPriority(int nPriority, CCTouchDelegate *pDelegate)
{
CC_UNUSED_PARAM(nPriority);
CC_UNUSED_PARAM(pDelegate);
assert(0);
}
示例13: CC_UNUSED_PARAM
bool EventListenerPhysicsContact::hitTest(PhysicsShape* shapeA, PhysicsShape* shapeB)
{
CC_UNUSED_PARAM(shapeA);
CC_UNUSED_PARAM(shapeB);
return true;
}
示例14: CC_UNUSED_PARAM
void Spider::actionDownEnd(cocos2d::CCObject *s)
{
Spider* spider = (Spider*)s;
CC_UNUSED_PARAM(spider);
}
示例15: CC_UNUSED_PARAM
void CCParticleSystem::updateQuadWithParticle(tCCParticle* particle, const CCPoint& newPosition)
{
CC_UNUSED_PARAM(particle);
CC_UNUSED_PARAM(newPosition);
// should be overriden
}