// // TintTo // CCTintTo* CCTintTo::actionWithDuration(ccTime duration, CCubyte red, CCubyte green, CCubyte blue) { CCTintTo *pTintTo = new CCTintTo(); pTintTo->initWithDuration(duration, red, green, blue); pTintTo->autorelease(); return pTintTo; }
// // TintTo // CCTintTo* CCTintTo::create(float duration, CCubyte red, CCubyte green, CCubyte blue) { CCTintTo *pTintTo = new CCTintTo(); pTintTo->initWithDuration(duration, red, green, blue); pTintTo->autorelease(); return pTintTo; }
CCObject* CCTintTo::copyWithZone(CCZone *pZone) { CCZone* pNewZone = NULL; CCTintTo* pCopy = NULL; if(pZone && pZone->m_pCopyObject) { //in case of being called at sub class pCopy = (CCTintTo*)(pZone->m_pCopyObject); } else { pCopy = new CCTintTo(); pZone = pNewZone = new CCZone(pCopy); } CCActionInterval::copyWithZone(pZone); pCopy->initWithDuration(m_fDuration, m_to.r, m_to.g, m_to.b); CC_SAFE_DELETE(pNewZone); return pCopy; }