当前位置: 首页>>代码示例>>C#>>正文


C# cocos2d.CCZone类代码示例

本文整理汇总了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;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:30,代码来源:CCRepeatForever.cs

示例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;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:25,代码来源:CCMoveBy.cs

示例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;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:33,代码来源:CCSequence.cs

示例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;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:25,代码来源:CCReverseTime.cs

示例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;
        }
开发者ID:liwq-net,项目名称:cocos2d-for-xna-windows,代码行数:25,代码来源:CCGridAction.cs

示例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;
        }
开发者ID:Openxlive,项目名称:cocos2d-x-for-xna,代码行数:15,代码来源:CCShow.cs

示例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;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:16,代码来源:CCAction.cs

示例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;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:17,代码来源:CCPlace.cs

示例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;
        }
开发者ID:Openxlive,项目名称:cocos2d-x-for-xna,代码行数:19,代码来源:CCCallFuncN.cs

示例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;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:18,代码来源:CCActionInstant.cs

示例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;
        }
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:20,代码来源:CCOrbitCamera.cs

示例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;
        }
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:19,代码来源:CCEaseBackInOut.cs

示例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;
        }
开发者ID:Openxlive,项目名称:cocos2d-x-for-xna,代码行数:19,代码来源:CCFadeIn.cs

示例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;
        }
开发者ID:Openxlive,项目名称:cocos2d-x-for-xna,代码行数:19,代码来源:CCFlipY.cs

示例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;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:20,代码来源:CCShaky3D.cs


注:本文中的cocos2d.CCZone类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。