// // TintBy // CCTintBy* CCTintBy::actionWithDuration(ccTime duration, CCshort deltaRed, CCshort deltaGreen, CCshort deltaBlue) { CCTintBy *pTintBy = new CCTintBy(); pTintBy->initWithDuration(duration, deltaRed, deltaGreen, deltaBlue); pTintBy->autorelease(); return pTintBy; }
// // TintBy // CCTintBy* CCTintBy::create(float duration, CCshort deltaRed, CCshort deltaGreen, CCshort deltaBlue) { CCTintBy *pTintBy = new CCTintBy(); pTintBy->initWithDuration(duration, deltaRed, deltaGreen, deltaBlue); pTintBy->autorelease(); return pTintBy; }
CCObject* CCTintBy::copyWithZone(CCZone *pZone) { CCZone* pNewZone = NULL; CCTintBy* pCopy = NULL; if(pZone && pZone->m_pCopyObject) { //in case of being called at sub class pCopy = (CCTintBy*)(pZone->m_pCopyObject); } else { pCopy = new CCTintBy(); pZone = pNewZone = new CCZone(pCopy); } CCActionInterval::copyWithZone(pZone); pCopy->initWithDuration(m_fDuration, (CCubyte)m_deltaR, (CCubyte)m_deltaG, (CCubyte)m_deltaB); CC_SAFE_DELETE(pNewZone); return pCopy; }