Пример #1
0
        public static CCActionInterval actionWithDuration(float t)
        {
            CCFlipX3D flipx = new CCFlipY3D(t);
            CCFiniteTimeAction flipx_back = flipx.Reverse();
            CCDelayTime delay = new CCDelayTime (2);

            return (CCSequence.FromActions(flipx, delay, flipx_back));
        }
Пример #2
0
        public static new CCFlipY3D actionWithDuration(float duration)
        {
            CCFlipY3D cCFlipY3D = new CCFlipY3D();

            if (cCFlipY3D != null)
            {
                cCFlipY3D.initWithSize(new ccGridSize(1, 1), duration);
            }
            return(cCFlipY3D);
        }
Пример #3
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCFlipY3D cCFlipY3D = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCFlipY3D = new CCFlipY3D();
                pZone     = new CCZone(cCFlipY3D);
            }
            else
            {
                cCFlipY3D = (CCFlipY3D)pZone.m_pCopyObject;
            }
            this.copyWithZone(pZone);
            cCFlipY3D.initWithSize(this.m_sGridSize, this.m_fDuration);
            return(cCFlipY3D);
        }
Пример #4
0
        /** creates the action with duration */
        public static CCFlipY3D actionWithDuration(float duration)
        {
            CCFlipY3D pAction = new CCFlipY3D();

            if (pAction != null)
            {
                if (pAction.initWithSize(new ccGridSize(1, 1), duration))
                {
                    // pAction->autorelease();
                }
                else
                {
                    // CC_SAFE_RELEASE_NULL(pAction);
                }
            }

            return pAction;
        }
Пример #5
0
        /** creates the action with duration */
        public static CCFlipY3D actionWithDuration(float duration)
        {
            CCFlipY3D pAction = new CCFlipY3D();

            if (pAction != null)
            {
                if (pAction.initWithSize(new ccGridSize(1, 1), duration))
                {
                    // pAction->autorelease();
                }
                else
                {
                    // CC_SAFE_RELEASE_NULL(pAction);
                }
            }

            return(pAction);
        }
Пример #6
0
        public override object Copy(ICopyable pZone)
        {
            CCFlipY3D pCopy;
            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCFlipY3D) (pZone);
            }
            else
            {
                pCopy = new CCFlipY3D();
                pZone = pCopy;
            }

            base.Copy(pZone);

            pCopy.InitWithSize(m_sGridSize, m_fDuration);

            return pCopy;
        }
Пример #7
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCFlipY3D pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCFlipY3D)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCFlipY3D();
                pZone = pNewZone = new CCZone(pCopy);
            }

            // CCFlipX3D::copyWithZone(pZone);
            copyWithZone(pZone);
            pCopy.initWithSize(m_sGridSize, m_fDuration);

            // CC_SAFE_DELETE(pNewZone);
            return pCopy;
        }
Пример #8
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone    pNewZone = null;
            CCFlipY3D pCopy    = null;

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

            // CCFlipX3D::copyWithZone(pZone);
            copyWithZone(pZone);
            pCopy.initWithSize(m_sGridSize, Duration);

            // CC_SAFE_DELETE(pNewZone);
            return(pCopy);
        }
Пример #9
0
 public CCFlipY3D(CCFlipY3D flipY3D)
     : base(flipY3D)
 {
 }
Пример #10
0
 /** creates the action with duration */
 public static new CCFlipY3D Create(float duration)
 {
     var pAction = new CCFlipY3D();
     pAction.InitWithSize(new CCGridSize(1, 1), duration);
     return pAction;
 }