Ejemplo n.º 1
0
        public static CCActionInterval actionWithDuration(float t)
        {
            CCFlipX3D flipx = new CCFlipX3D(t);
            CCFiniteTimeAction flipx_back = flipx.Reverse();
            CCDelayTime delay = new CCDelayTime (2);

            return (CCSequence.FromActions(flipx, delay, flipx_back));
        }
Ejemplo n.º 2
0
        public static new CCFlipX3D actionWithDuration(float duration)
        {
            CCFlipX3D cCFlipX3D = new CCFlipX3D();

            if (cCFlipX3D.initWithSize(new ccGridSize(1, 1), duration))
            {
                return(cCFlipX3D);
            }
            return(null);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// creates the action with duration
        /// </summary>
        public static new CCFlipX3D actionWithDuration(float duration)
        {
            CCFlipX3D pAction = new CCFlipX3D();

            if (pAction.initWithSize(new ccGridSize(1, 1), duration))
            {
                return pAction;
            }

            return null;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// creates the action with duration
        /// </summary>
        public new static CCFlipX3D actionWithDuration(float duration)
        {
            CCFlipX3D pAction = new CCFlipX3D();

            if (pAction.initWithSize(new ccGridSize(1, 1), duration))
            {
                return(pAction);
            }

            return(null);
        }
Ejemplo n.º 5
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCFlipX3D cCFlipX3D = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCFlipX3D = new CCFlipX3D();
                pZone     = new CCZone(cCFlipX3D);
            }
            else
            {
                cCFlipX3D = (CCFlipX3D)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCFlipX3D.initWithSize(this.m_sGridSize, this.m_fDuration);
            return(cCFlipX3D);
        }
Ejemplo n.º 6
0
        /** creates the action with duration */
        public static CCFlipX3D actionWithDuration(float duration)
        {
            CCFlipX3D pAction = new CCFlipX3D();

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

            return pAction;
        }
Ejemplo n.º 7
0
        public override object Copy(ICopyable pZone)
        {
            CCFlipX3D pCopy;
            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCFlipX3D) (pZone);
            }
            else
            {
                pCopy = new CCFlipX3D();
                pZone = pCopy;
            }

            base.Copy(pZone);

            pCopy.InitWithSize(m_sGridSize, m_fDuration);

            return pCopy;
        }
Ejemplo n.º 8
0
        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;
        }
Ejemplo n.º 9
0
        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);
            }

            base.copyWithZone(pZone);

            pCopy.initWithSize(m_sGridSize, m_fDuration);

            // CC_SAFE_DELETE(pNewZone);
            return(pCopy);
        }
Ejemplo n.º 10
0
 public CCFlipX3D(CCFlipX3D flipX3D)
 {
     InitWithSize(flipX3D.m_sGridSize, flipX3D.m_fDuration);
 }
Ejemplo n.º 11
0
 public static new CCFlipX3D Create(float duration)
 {
     var pAction = new CCFlipX3D();
     pAction.InitWithSize(new CCGridSize(1, 1), duration);
     return pAction;
 }