本文整理汇总了C++中CCJumpTiles3D::initWithJumps方法的典型用法代码示例。如果您正苦于以下问题:C++ CCJumpTiles3D::initWithJumps方法的具体用法?C++ CCJumpTiles3D::initWithJumps怎么用?C++ CCJumpTiles3D::initWithJumps使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCJumpTiles3D
的用法示例。
在下文中一共展示了CCJumpTiles3D::initWithJumps方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
CCJumpTiles3D* CCJumpTiles3D::actionWithJumps(int j, float amp, const ccGridSize& gridSize, ccTime duration)
{
CCJumpTiles3D *pAction = new CCJumpTiles3D();
if (pAction)
{
if (pAction->initWithJumps(j, amp, gridSize, duration))
{
pAction->autorelease();
}
else
{
CC_SAFE_RELEASE_NULL(pAction);
}
}
return pAction;
}
示例2: CCZone
CCObject* CCJumpTiles3D::copyWithZone(CCZone *pZone)
{
CCZone* pNewZone = NULL;
CCJumpTiles3D* pCopy = NULL;
if(pZone && pZone->m_pCopyObject)
{
pCopy = (CCJumpTiles3D*)(pZone->m_pCopyObject);
}
else
{
pCopy = new CCJumpTiles3D();
pZone = pNewZone = new CCZone(pCopy);
}
CCTiledGrid3DAction::copyWithZone(pZone);
pCopy->initWithJumps(m_nJumps, m_fAmplitude, m_sGridSize, m_fDuration);
CC_SAFE_DELETE(pNewZone);
return pCopy;
}