• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# cocos2d.CCZone类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中cocos2d.CCZone的典型用法代码示例。如果您正苦于以下问题:C# CCZone类的具体用法?C# CCZone怎么用?C# CCZone使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CCZone类属于cocos2d命名空间,在下文中一共展示了CCZone类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: copyWithZone

        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCCallFunc pRet = null;

            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pRet = (CCCallFunc) (pZone.m_pCopyObject);
            } else {
                pRet = new CCCallFunc();
                pZone = pNewZone = new CCZone(pRet);
            }

            base.copyWithZone(pZone);
            pRet.initWithTarget(m_pSelectorTarget);
            pRet.m_pCallFunc = m_pCallFunc;
            pRet.m_scriptFuncName = m_scriptFuncName;
            return pRet;
        }
开发者ID:Openxlive,项目名称:cocos2d-x-for-xna,代码行数:20,代码来源:CCCallFunc.cs


示例17: copyWithZone

        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone tmpZone = null;
            CCSpeed ret = null;
            if (tmpZone != null && tmpZone.m_pCopyObject != null)
            {
                ret = (CCSpeed)tmpZone.m_pCopyObject;
            }
            else
            {
                ret = new CCSpeed();
                tmpZone = new CCZone(ret);
            }

            base.copyWithZone(zone);

            ret.initWithAction((CCActionInterval)m_pInnerAction.copy(), m_fSpeed);

            return ret;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:20,代码来源:CCSpeed.cs


示例18: copyWithZone

        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCTwirl pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCTwirl)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCTwirl();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithPosition(m_position, m_nTwirls, m_fAmplitude, m_sGridSize, Duration);
            return pCopy;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:20,代码来源:CCTwirl.cs


示例19: copyWithZone

        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone tmpZone = zone;
            CCMoveTo ret = null;

            if (tmpZone != null && tmpZone.m_pCopyObject != null)
            {
                ret = (CCMoveTo)tmpZone.m_pCopyObject;
            }
            else
            {
                ret = new CCMoveTo();
                tmpZone = new CCZone(ret);
            }

            base.copyWithZone(tmpZone);
            ret.initWithDuration(Duration, m_endPosition);

            return ret;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:20,代码来源:CCMoveTo.cs


示例20: copyWithZone

        // super virtual functions
        public virtual CCCardinalSplineTo copyWithZone(CCZone pZone)
        {
            CCZone pNewZone;
            CCCardinalSplineTo pRet;
            if (pZone != null && pZone.m_pCopyObject != null) //in case of being called at sub class
            {
                pRet = (CCCardinalSplineTo)(pZone.m_pCopyObject);
            }
            else
            {
                pRet = new CCCardinalSplineTo();
                pZone = pNewZone = new CCZone(pRet);
            }

            base.copyWithZone(pZone);

            pRet.initWithDuration(Duration, m_pPoints, m_fTension);

            return pRet;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:21,代码来源:CCCardinalSplineTo.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# cocos2d.ccGridSize类代码示例发布时间:2022-05-26
下一篇:
C# cocos2d.CCTouch类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap