Beispiel #1
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCSpriteFrame cCSpriteFrame = new CCSpriteFrame();

            cCSpriteFrame.initWithTexture(this.m_pobTexture, this.m_obRectInPixels, this.m_bRotated, this.m_obOffsetInPixels, this.m_obOriginalSizeInPixels);
            return(cCSpriteFrame);
        }
        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;
        }
Beispiel #3
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone  cCZone  = zone;
            CCSpawn cCSpawn = null;

            if (cCZone == null || cCZone.m_pCopyObject == null)
            {
                cCSpawn = new CCSpawn();
                cCZone  = new CCZone(cCSpawn);
            }
            else
            {
                cCSpawn = cCZone.m_pCopyObject as CCSpawn;
                if (cCSpawn == null)
                {
                    return(null);
                }
            }
            base.copyWithZone(cCZone);
            CCFiniteTimeAction cCFiniteTimeAction  = this.m_pOne.copy() as CCFiniteTimeAction;
            CCFiniteTimeAction cCFiniteTimeAction1 = this.m_pTwo.copy() as CCFiniteTimeAction;

            if (cCFiniteTimeAction == null || cCFiniteTimeAction1 == null)
            {
                return(null);
            }
            cCSpawn.initOneTwo(cCFiniteTimeAction, cCFiniteTimeAction1);
            return(cCSpawn);
        }
        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;
        }
Beispiel #5
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone   cCZone   = zone;
            CCRepeat cCRepeat = null;

            if (cCZone == null || cCZone.m_pCopyObject == null)
            {
                cCRepeat = new CCRepeat();
                cCZone   = new CCZone(cCRepeat);
            }
            else
            {
                cCRepeat = cCZone.m_pCopyObject as CCRepeat;
                if (cCRepeat == null)
                {
                    return(null);
                }
            }
            base.copyWithZone(cCZone);
            CCFiniteTimeAction cCFiniteTimeAction = this.m_pInnerAction.copy() as CCFiniteTimeAction;

            if (cCFiniteTimeAction == null)
            {
                return(null);
            }
            cCRepeat.initWithAction(cCFiniteTimeAction, this.m_uTimes);
            return(cCRepeat);
        }
Beispiel #6
0
        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;
        }
Beispiel #7
0
        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);
        }
        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;
        }
Beispiel #9
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone     cCZone     = zone;
            CCSequence cCSequence = null;

            if (cCZone == null || cCZone.m_pCopyObject == null)
            {
                cCSequence = new CCSequence();
                cCZone     = new CCZone(cCSequence);
            }
            else
            {
                cCSequence = cCZone.m_pCopyObject as CCSequence;
                if (cCSequence == null)
                {
                    return(null);
                }
            }
            base.copyWithZone(cCZone);
            CCFiniteTimeAction cCFiniteTimeAction  = this.m_pActions[0].copy() as CCFiniteTimeAction;
            CCFiniteTimeAction cCFiniteTimeAction1 = this.m_pActions[1].copy() as CCFiniteTimeAction;

            if (cCFiniteTimeAction == null || cCFiniteTimeAction1 == null)
            {
                return(null);
            }
            cCSequence.initOneTwo(cCFiniteTimeAction, cCFiniteTimeAction1);
            return(cCSequence);
        }
Beispiel #10
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone   tmpZone = zone;
            CCJumpTo ret     = null;

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

            base.copyWithZone(tmpZone);

            ret.initWithDuration(Duration, m_delta, m_height, m_nJumps);

            return(ret);
        }
Beispiel #11
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone     tmpZone = zone;
            CCBezierBy ret     = null;

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

            base.copyWithZone(tmpZone);

            ret.initWithDuration(m_fDuration, m_sConfig);

            return(ret);
        }
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone          cCZone          = zone;
            CCRepeatForever cCRepeatForever = null;

            if (cCZone == null || cCZone.m_pCopyObject == null)
            {
                cCRepeatForever = new CCRepeatForever();
                cCZone          = new CCZone(cCRepeatForever);
            }
            else
            {
                cCRepeatForever = cCZone.m_pCopyObject as CCRepeatForever;
                if (cCRepeatForever == null)
                {
                    return(null);
                }
            }
            base.copyWithZone(cCZone);
            CCActionInterval cCActionInterval = this.m_pInnerAction.copy() as CCActionInterval;

            if (cCActionInterval == null)
            {
                return(null);
            }
            cCRepeatForever.initWithAction(cCActionInterval);
            return(cCRepeatForever);
        }
        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);
        }
Beispiel #14
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone  tmpZone = zone;
            CCSpawn ret     = null;

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

            base.copyWithZone(tmpZone);

            CCFiniteTimeAction param1 = m_pOne.copy() as CCFiniteTimeAction;
            CCFiniteTimeAction param2 = m_pTwo.copy() as CCFiniteTimeAction;

            if (param1 == null || param2 == null)
            {
                return(null);
            }

            ret.initOneTwo(param1, param2);

            return(ret);
        }
Beispiel #15
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCSpriteFrame pCopy = new CCSpriteFrame();

            pCopy.initWithTexture(m_pobTexture, m_obRectInPixels, m_bRotated, m_obOffsetInPixels, m_obOriginalSizeInPixels);
            return(pCopy);
        }
Beispiel #16
0
        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);
        }
Beispiel #17
0
        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;
        }
Beispiel #18
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone   cCZone = zone;
            CCAction mNTag  = null;

            mNTag        = (cCZone == null || cCZone.m_pCopyObject == null ? new CCAction() : (CCAction)cCZone.m_pCopyObject);
            mNTag.m_nTag = this.m_nTag;
            return(mNTag);
        }
Beispiel #19
0
        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;
        }
		public override CCObject copyWithZone(CCZone pZone)
		{
			CCEaseElasticOut cCEaseElasticOut = null;
			if (pZone == null || pZone.m_pCopyObject == null)
			{
				cCEaseElasticOut = new CCEaseElasticOut();
				pZone = new CCZone(cCEaseElasticOut);
			}
			else
			{
				cCEaseElasticOut = pZone.m_pCopyObject as CCEaseElasticOut;
			}
			cCEaseElasticOut.initWithAction((CCActionInterval)this.m_pOther.copy(), this.m_fPeriod);
			return cCEaseElasticOut;
		}
Beispiel #21
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCShow cCShow = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCShow = new CCShow();
                pZone  = new CCZone(cCShow);
            }
            else
            {
                cCShow = (CCShow)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            return(cCShow);
        }
Beispiel #22
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCEaseOut cCEaseOut = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCEaseOut = new CCEaseOut();
                pZone     = new CCZone(cCEaseOut);
            }
            else
            {
                cCEaseOut = (CCEaseOut)pZone.m_pCopyObject;
            }
            cCEaseOut.initWithAction((CCActionInterval)this.m_pOther.copy(), this.m_fRate);
            return(cCEaseOut);
        }
Beispiel #23
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCEaseBounce cCEaseBounce = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCEaseBounce = new CCEaseBounce();
                pZone        = new CCZone(cCEaseBounce);
            }
            else
            {
                cCEaseBounce = pZone.m_pCopyObject as CCEaseBounce;
            }
            cCEaseBounce.initWithAction((CCActionInterval)this.m_pOther.copy());
            return(cCEaseBounce);
        }
Beispiel #24
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCDelayTime cCDelayTime = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCDelayTime = new CCDelayTime();
                pZone       = new CCZone(cCDelayTime);
            }
            else
            {
                cCDelayTime = (CCDelayTime)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            return(cCDelayTime);
        }
Beispiel #25
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCEaseSineIn cCEaseSineIn = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCEaseSineIn = new CCEaseSineIn();
                pZone        = new CCZone(cCEaseSineIn);
            }
            else
            {
                cCEaseSineIn = (CCEaseSineIn)pZone.m_pCopyObject;
            }
            cCEaseSineIn.initWithAction((CCActionInterval)this.m_pOther.copy());
            return(cCEaseSineIn);
        }
Beispiel #26
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCFadeIn cCFadeIn = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCFadeIn = new CCFadeIn();
                pZone    = new CCZone(cCFadeIn);
            }
            else
            {
                cCFadeIn = (CCFadeIn)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            return(cCFadeIn);
        }
Beispiel #27
0
        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;
        }
        public virtual new CCCardinalSplineTo copyWithZone(CCZone pZone)
        {
            CCCardinalSplineTo cCCardinalSplineTo;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCCardinalSplineTo = new CCCardinalSplineTo();
                pZone = new CCZone(cCCardinalSplineTo);
            }
            else
            {
                cCCardinalSplineTo = (CCCardinalSplineTo)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCCardinalSplineTo.initWithDuration(base.duration, this.m_pPoints, this.m_fTension);
            return(cCCardinalSplineTo);
        }
Beispiel #29
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCSplitRows cCSplitRow = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCSplitRow = new CCSplitRows();
                pZone      = new CCZone(cCSplitRow);
            }
            else
            {
                cCSplitRow = (CCSplitRows)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCSplitRow.initWithRows(this.m_nRows, this.m_fDuration);
            return(cCSplitRow);
        }
Beispiel #30
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCSkewTo cCSkewTo = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCSkewTo = new CCSkewTo();
                pZone    = new CCZone(cCSkewTo);
            }
            else
            {
                cCSkewTo = (CCSkewTo)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCSkewTo.initWithDuration(this.m_fDuration, this.m_fEndSkewX, this.m_fEndSkewY);
            return(cCSkewTo);
        }
Beispiel #31
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCWavesTiles3D cCWavesTiles3D = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCWavesTiles3D = new CCWavesTiles3D();
                pZone          = new CCZone(cCWavesTiles3D);
            }
            else
            {
                cCWavesTiles3D = (CCWavesTiles3D)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCWavesTiles3D.initWithWaves(this.m_nWaves, this.m_fAmplitude, this.m_sGridSize, this.m_fDuration);
            return(cCWavesTiles3D);
        }
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCShatteredTiles3D cCShatteredTiles3D = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCShatteredTiles3D = new CCShatteredTiles3D();
                pZone = new CCZone(cCShatteredTiles3D);
            }
            else
            {
                cCShatteredTiles3D = (CCShatteredTiles3D)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCShatteredTiles3D.initWithRange(this.m_nRandrange, this.m_bShatterZ, this.m_sGridSize, this.m_fDuration);
            return(cCShatteredTiles3D);
        }
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone          cCZone          = zone;
            CCActionInstant cCActionInstant = null;

            if (cCZone == null || cCZone.m_pCopyObject == null)
            {
                cCActionInstant = new CCActionInstant();
                cCZone          = new CCZone(cCActionInstant);
            }
            else
            {
                cCActionInstant = (CCActionInstant)cCZone.m_pCopyObject;
            }
            base.copyWithZone(cCZone);
            return(cCActionInstant);
        }
Beispiel #34
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCWaves cCWafe = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCWafe = new CCWaves();
                pZone  = new CCZone(cCWafe);
            }
            else
            {
                cCWafe = (CCWaves)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCWafe.initWithWaves(this.m_nWaves, this.m_fAmplitude, this.m_bHorizontal, this.m_bVertical, this.m_sGridSize, this.m_fDuration);
            return(cCWafe);
        }
Beispiel #35
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCBlink cCBlink = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCBlink = new CCBlink();
                pZone   = new CCZone(cCBlink);
            }
            else
            {
                cCBlink = (CCBlink)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCBlink.initWithDuration(this.m_fDuration, this.m_nTimes);
            return(cCBlink);
        }
Beispiel #36
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCCallFuncN cCCallFuncN = null;

            if (zone == null || zone.m_pCopyObject == null)
            {
                cCCallFuncN = new CCCallFuncN();
                zone        = new CCZone(cCCallFuncN);
            }
            else
            {
                cCCallFuncN = (CCCallFuncN)zone.m_pCopyObject;
            }
            base.copyWithZone(zone);
            cCCallFuncN.initWithTarget(this.m_pSelectorTarget, this.m_pCallFuncN);
            return(cCCallFuncN);
        }
Beispiel #37
0
        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;
        }
Beispiel #38
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCProgressFromTo cCProgressFromTo = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCProgressFromTo = new CCProgressFromTo();
                pZone            = new CCZone(cCProgressFromTo);
            }
            else
            {
                cCProgressFromTo = (CCProgressFromTo)pZone.m_pCopyObject;
            }
            this.copyWithZone(pZone);
            cCProgressFromTo.initWithDuration(this.m_fDuration, this.m_fFrom, this.m_fTo);
            return(cCProgressFromTo);
        }
        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;
        }
        // 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;
        }
        // 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;
        }
Beispiel #42
0
        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;
        }
        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;
        }
Beispiel #44
0
        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;
        }
Beispiel #45
0
        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;
        }
        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;
        }
Beispiel #47
0
        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;
        }
Beispiel #48
0
        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;
        }
Beispiel #49
0
        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;
        }
Beispiel #50
0
        // 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;
        }
Beispiel #51
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCWaves pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCWaves)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCWaves();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithWaves(m_nWaves, m_fAmplitude, m_bHorizontal, m_bVertical, m_sGridSize, m_fDuration);

            return pCopy;
        }
        public override CCObject copyWithZone(CCZone pZone) 
        {
            CCZone pNewZone = null;
            CCEaseSineIn pCopy = null;

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

            pCopy.initWithAction((CCActionInterval)(m_pOther.copy()));

            //CC_SAFE_DELETE(pNewZone);
            return pCopy;
        }
Beispiel #53
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCBlink pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCBlink)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCBlink();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithDuration(Duration, m_nTimes);

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

            base.copyWithZone(pZone);

            pCopy.initWithDuration(Duration, m_pAnimation, m_bRestoreOriginalFrame);

            return pCopy;
        }
Beispiel #55
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCJumpTiles3D pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pCopy = (CCJumpTiles3D)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCJumpTiles3D();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);
            pCopy.initWithJumps(m_nJumps, m_fAmplitude, m_sGridSize, Duration);

            //CC_SAFE_DELETE(pNewZone);
            pNewZone = null;
            return pCopy;
        }
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCShuffleTiles pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pCopy = (CCShuffleTiles)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCShuffleTiles();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithSeed(m_nSeed, m_sGridSize, m_fDuration);

            pNewZone = null;
            return pCopy;
        }
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCSplitCols pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pCopy = (CCSplitCols)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCSplitCols();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);
            pCopy.initWithCols(m_nCols, m_fDuration);

            //CC_SAFE_DELETE(pNewZone);
            pNewZone = null;
            return pCopy;
        }
Beispiel #58
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCFadeTo pCopy = null;
            if(pZone != null && pZone.m_pCopyObject != null) 
            {
                //in case of being called at sub class
                pCopy = (CCFadeTo)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCFadeTo();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithDuration(m_fDuration, m_toOpacity);
	
            return pCopy;
        }
Beispiel #59
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCScaleTo pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCScaleTo)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCScaleTo();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithDuration(m_fDuration, m_fEndScaleX, m_fEndScaleY);

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

            // CCGrid3DAction::copyWithZone(pZone);

            pCopy.initWithSize(m_sGridSize, m_fDuration);

            // CC_SAFE_DELETE(pNewZone);
            return pCopy;
        }