Ejemplo n.º 1
0
        public static new CCEaseBackInOut actionWithAction(CCActionInterval pAction)
        {
            CCEaseBackInOut cCEaseBackInOut = new CCEaseBackInOut();

            if (cCEaseBackInOut != null)
            {
                cCEaseBackInOut.initWithAction(pAction);
            }
            return(cCEaseBackInOut);
        }
Ejemplo n.º 2
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCEaseBackInOut cCEaseBackInOut = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCEaseBackInOut = new CCEaseBackInOut();
                pZone           = new CCZone(cCEaseBackInOut);
            }
            else
            {
                cCEaseBackInOut = pZone.m_pCopyObject as CCEaseBackInOut;
            }
            cCEaseBackInOut.initWithAction((CCActionInterval)this.m_pOther.copy());
            return(cCEaseBackInOut);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// creates the action
        /// </summary>
        /// <param name="pAction"></param>
        /// <returns></returns>
        public static new CCEaseBackInOut actionWithAction(CCActionInterval pAction)
        {
            CCEaseBackInOut pRet = new CCEaseBackInOut();

            if (pRet != null)
            {
                if (pRet.initWithAction(pAction))
                {
                    //pRet->autorelease();
                }
                else
                {
                    //CC_SAFE_RELEASE_NULL(pRet);
                }
            }

            return pRet;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// creates the action
        /// </summary>
        /// <param name="pAction"></param>
        /// <returns></returns>
        public new static CCEaseBackInOut actionWithAction(CCActionInterval pAction)
        {
            CCEaseBackInOut pRet = new CCEaseBackInOut();

            if (pRet != null)
            {
                if (pRet.initWithAction(pAction))
                {
                    //pRet->autorelease();
                }
                else
                {
                    //CC_SAFE_RELEASE_NULL(pRet);
                }
            }

            return(pRet);
        }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        public override void OnEnter()
        {
            base.OnEnter();

            var s = CCDirector.SharedDirector.WinSize;

            var move = new CCMoveBy (3, new CCPoint(s.Width - 130, 0));
            var move_back = move.Reverse();

            var move_ease = new CCEaseBackInOut((CCActionInterval) (move.Copy()));
            var move_ease_back = move_ease.Reverse() as CCActionInterval;

            var delay = new CCDelayTime (0.25f);

            var seq1 = CCSequence.FromActions(move, delay, move_back, (CCFiniteTimeAction) delay.Copy());
            var seq2 = CCSequence.FromActions(move_ease, (CCFiniteTimeAction) delay.Copy(), move_ease_back, (CCFiniteTimeAction) delay.Copy());

            positionForTwo();

            m_grossini.RunAction(new CCRepeatForever (seq1));
            m_tamara.RunAction(new CCRepeatForever (seq2));
        }