本文整理汇总了C#中cocos2d.CCZone类的典型用法代码示例。如果您正苦于以下问题:C# CCZone类的具体用法?C# CCZone怎么用?C# CCZone使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CCZone类属于cocos2d命名空间,在下文中一共展示了CCZone类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: copyWithZone
public override CCObject copyWithZone(CCZone zone)
{
CCZone tmpZone = zone;
CCRepeatForever ret = null;
if (tmpZone != null && tmpZone.m_pCopyObject != null)
{
ret = tmpZone.m_pCopyObject as CCRepeatForever;
if (ret == null)
{
return null;
}
}
else
{
ret = new CCRepeatForever();
tmpZone = new CCZone(ret);
}
base.copyWithZone(tmpZone);
CCActionInterval param = m_pInnerAction.copy() as CCActionInterval;
if (param == null)
{
return null;
}
ret.initWithAction(param);
return ret;
}
示例2: copyWithZone
public override CCObject copyWithZone(CCZone zone)
{
CCZone tmpZone = zone;
CCMoveBy ret = null;
if (tmpZone != null && tmpZone.m_pCopyObject != null)
{
ret = tmpZone.m_pCopyObject as CCMoveBy;
if (ret == null)
{
return null;
}
}
else
{
ret = new CCMoveBy();
tmpZone = new CCZone(ret);
}
base.copyWithZone(tmpZone);
ret.initWithDuration(Duration, m_delta);
return ret;
}
示例3: copyWithZone
public override CCObject copyWithZone(CCZone zone)
{
CCZone tmpZone = zone;
CCSequence ret = null;
if (tmpZone != null && tmpZone.m_pCopyObject != null)
{
ret = tmpZone.m_pCopyObject as CCSequence;
if (ret == null)
{
return null;
}
}
else
{
ret = new CCSequence();
tmpZone = new CCZone(ret);
}
base.copyWithZone(tmpZone);
CCFiniteTimeAction param1 = m_pActions[0].copy() as CCFiniteTimeAction;
CCFiniteTimeAction param2 = m_pActions[1].copy() as CCFiniteTimeAction;
if (param1 == null || param2 == null)
{
return null;
}
ret.initOneTwo(param1, param2);
return ret;
}
示例4: copyWithZone
public override CCObject copyWithZone(CCZone zone)
{
CCZone tmpZone = zone;
CCReverseTime ret = null;
if (tmpZone != null && tmpZone.m_pCopyObject != null)
{
ret = tmpZone.m_pCopyObject as CCReverseTime;
if (ret == null)
{
return null;
}
}
else
{
ret = new CCReverseTime();
tmpZone = new CCZone(ret);
}
base.copyWithZone(tmpZone);
ret.initWithAction(m_pOther.copy() as CCFiniteTimeAction);
return ret;
}
示例5: copyWithZone
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCGridAction pCopy = null;
if (pZone != null && pZone.m_pCopyObject != null)
{
//in case of being called at sub class
pCopy = (CCGridAction)(pZone.m_pCopyObject);
}
else
{
pCopy = new CCGridAction();
pZone = pNewZone = new CCZone(pCopy);
}
base.copyWithZone(pZone);
pCopy.initWithSize(m_sGridSize, m_fDuration);
if (pNewZone != null)
{
pNewZone = null;
}
return pCopy;
}
示例6: copyWithZone
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCShow pRet = null;
if (pZone != null && pZone.m_pCopyObject != null)
{
pRet = (CCShow) (pZone.m_pCopyObject);
} else {
pRet = new CCShow();
pZone = pNewZone = new CCZone(pRet);
}
base.copyWithZone(pZone);
return pRet;
}
示例7: copyWithZone
public override CCObject copyWithZone(CCZone zone)
{
CCZone tmpZone = zone;
CCAction ret = null;
if (tmpZone != null && tmpZone.m_pCopyObject != null)
{
ret = (CCAction)tmpZone.m_pCopyObject;
}
else
{
ret = new CCAction();
}
ret.m_nTag = m_nTag;
return ret;
}
示例8: copyWithZone
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCPlace pRet = null;
if (pZone != null && pZone.m_pCopyObject != null)
{
pRet = (CCPlace) (pZone.m_pCopyObject);
} else {
pRet = new CCPlace();
pZone = pNewZone = new CCZone(pRet);
}
base.copyWithZone(pZone);
pRet.initWithPosition(m_tPosition);
return pRet;
}
示例9: copyWithZone
// super methods
public override CCObject copyWithZone(CCZone zone)
{
CCZone pNewZone = null;
CCCallFuncN pRet = null;
if (zone != null && zone.m_pCopyObject != null)
{
//in case of being called at sub class
pRet = (CCCallFuncN) (zone.m_pCopyObject);
} else {
pRet = new CCCallFuncN();
zone = pNewZone = new CCZone(pRet);
}
base.copyWithZone(zone);
pRet.initWithTarget(m_pSelectorTarget, m_pCallFuncN);
return pRet;
}
示例10: copyWithZone
public override CCObject copyWithZone(CCZone zone)
{
CCZone tmpZone = zone;
CCActionInstant ret = null;
if (tmpZone != null && tmpZone.m_pCopyObject != null)
{
ret = (CCActionInstant)tmpZone.m_pCopyObject;
}
else
{
ret = new CCActionInstant();
tmpZone = new CCZone(ret);
}
base.copyWithZone(tmpZone);
return ret;
}
示例11: copyWithZone
// super methods
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCOrbitCamera pRet = null;
if (pZone != null && pZone.m_pCopyObject != null) //in case of being called at sub class
pRet = (CCOrbitCamera)(pZone.m_pCopyObject);
else
{
pRet = new CCOrbitCamera();
pZone = pNewZone = new CCZone(pRet);
}
copyWithZone(pZone);
pRet.initWithDuration(m_fDuration, m_fRadius, m_fDeltaRadius, m_fAngleZ, m_fDeltaAngleZ, m_fAngleX, m_fDeltaAngleX);
//CC_SAFE_DELETE(pNewZone);
return pRet;
}
示例12: copyWithZone
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCEaseBackInOut pCopy = null;
if (pZone != null && pZone.m_pCopyObject != null)
{
//in case of being called at sub class
pCopy = pZone.m_pCopyObject as CCEaseBackInOut;
}
else
{
pCopy = new CCEaseBackInOut();
pZone = pNewZone = new CCZone(pCopy);
}
pCopy.initWithAction((CCActionInterval)(m_pOther.copy()));
return pCopy;
}
示例13: copyWithZone
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCFadeIn pCopy = null;
if(pZone != null && pZone.m_pCopyObject != null)
{
//in case of being called at sub class
pCopy = (CCFadeIn)(pZone.m_pCopyObject);
}
else
{
pCopy = new CCFadeIn();
pZone = pNewZone = new CCZone(pCopy);
}
base.copyWithZone(pZone);
return pCopy;
}
示例14: copyWithZone
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCFlipY pRet = null;
if (pZone != null && pZone.m_pCopyObject != null)
{
pRet = (CCFlipY)(pZone.m_pCopyObject);
}
else
{
pRet = new CCFlipY();
pZone = pNewZone = new CCZone(pRet);
}
base.copyWithZone(pZone);
pRet.initWithFlipY(m_bFlipY);
return pRet;
}
示例15: copyWithZone
public override CCObject copyWithZone(CCZone pZone)
{
CCZone pNewZone = null;
CCShaky3D pCopy = null;
if (pZone != null && pZone.m_pCopyObject != null)
{
//in case of being called at sub class
pCopy = (CCShaky3D)(pZone.m_pCopyObject);
}
else
{
pCopy = new CCShaky3D();
pZone = pNewZone = new CCZone(pCopy);
}
base.copyWithZone(pZone);
pCopy.initWithRange(m_nRandrange, m_bShakeZ, m_sGridSize, m_fDuration);
return pCopy;
}