本文整理汇总了C++中CCSplitCols类的典型用法代码示例。如果您正苦于以下问题:C++ CCSplitCols类的具体用法?C++ CCSplitCols怎么用?C++ CCSplitCols使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CCSplitCols类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CCSplitCols
CCSplitCols* CCSplitCols::create(float duration, unsigned int nCols)
{
CCSplitCols *pAction = new CCSplitCols();
if (pAction)
{
if (pAction->initWithDuration(duration, nCols))
{
pAction->autorelease();
}
else
{
CC_SAFE_RELEASE_NULL(pAction);
}
}
return pAction;
}
示例2: CCSplitCols
CCSplitCols* CCSplitCols::actionWithCols(int nCols, ccTime duration)
{
CCSplitCols *pAction = new CCSplitCols();
if (pAction)
{
if (pAction->initWithCols(nCols, duration))
{
pAction->autorelease();
}
else
{
CC_SAFE_RELEASE_NULL(pAction);
}
}
return pAction;
}
示例3: CCSplitCols
NSObject* CCSplitCols::copyWithZone(cocos2d::NSZone *pZone)
{
NSZone* pNewZone = NULL;
CCSplitCols* pCopy = NULL;
if(pZone && pZone->m_pCopyObject)
{
pCopy = (CCSplitCols*)(pZone->m_pCopyObject);
}
else
{
pCopy = new CCSplitCols();
pZone = pNewZone = new NSZone(pCopy);
}
CCTiledGrid3DAction::copyWithZone(pZone);
pCopy->initWithCols(m_nCols, m_fDuration);
CCX_SAFE_DELETE(pNewZone);
return pCopy;
}