本文整理汇总了C++中CCTurnOffTiles类的典型用法代码示例。如果您正苦于以下问题:C++ CCTurnOffTiles类的具体用法?C++ CCTurnOffTiles怎么用?C++ CCTurnOffTiles使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CCTurnOffTiles类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: actionWithDuration
static CCActionInterval* actionWithDuration(ccTime t)
{
CCTurnOffTiles* fadeout = CCTurnOffTiles::actionWithSeed(25, ccg(48,32) , t);
CCActionInterval* back = fadeout->reverse();
CCDelayTime* delay = CCDelayTime::actionWithDuration(0.5f);
return (CCActionInterval*)(CCSequence::actions(fadeout, delay, back, NULL));
}
示例2: create
static CCActionInterval* create(float t)
{
CCTurnOffTiles* fadeout = CCTurnOffTiles::create(t, CCSizeMake(48,32), 25);
CCActionInterval* back = fadeout->reverse();
CCDelayTime* delay = CCDelayTime::create(0.5f);
return CCSequence::create(fadeout, delay, back, NULL);
}
示例3: create
static CCActionInterval* create(float t)
{
CCTurnOffTiles* fadeout = CCTurnOffTiles::create(25, ccg(48,32) , t);
CCActionInterval* back = fadeout->reverse();
CCDelayTime* delay = CCDelayTime::create(0.5f);
return (CCActionInterval*)(CCSequence::create(fadeout, delay, back, NULL));
}
示例4: CCTurnOffTiles
CCTurnOffTiles* CCTurnOffTiles::create(float duration, const CCSize& gridSize)
{
CCTurnOffTiles* pAction = new CCTurnOffTiles();
if (pAction->initWithDuration(duration, gridSize, 0))
{
pAction->autorelease();
}
else
{
CC_SAFE_RELEASE_NULL(pAction);
}
return pAction;
}
示例5: CCTurnOffTiles
// implementation of TurnOffTiles
CCTurnOffTiles* CCTurnOffTiles::actionWithSize(const ccGridSize& size, ccTime d)
{
CCTurnOffTiles* pAction = new CCTurnOffTiles();
if (pAction->initWithSize(size, d))
{
pAction->autorelease();
}
else
{
CC_SAFE_RELEASE_NULL(pAction);
}
return pAction;
}
示例6: CCTurnOffTiles
CCTurnOffTiles* CCTurnOffTiles::create(float duration, const CCSize& gridSize, unsigned int seed)
{
CCTurnOffTiles *pAction = new CCTurnOffTiles();
if (pAction)
{
if (pAction->initWithDuration(duration, gridSize, seed))
{
CC_SAFE_AUTORELEASE(pAction);
}
else
{
CC_SAFE_RELEASE_NULL(pAction);
}
}
return pAction;
}
示例7: CCTurnOffTiles
NSObject* CCTurnOffTiles::copyWithZone(cocos2d::NSZone *pZone)
{
NSZone* pNewZone = NULL;
CCTurnOffTiles* pCopy = NULL;
if(pZone && pZone->m_pCopyObject)
{
pCopy = (CCTurnOffTiles*)(pZone->m_pCopyObject);
}
else
{
pCopy = new CCTurnOffTiles();
pZone = pNewZone = new NSZone(pCopy);
}
CCTiledGrid3DAction::copyWithZone(pZone);
pCopy->initWithSeed(m_nSeed, m_sGridSize, m_fDuration);
CCX_SAFE_DELETE(pNewZone);
return pCopy;
}