public static new CCEaseExponentialInOut actionWithAction(CCActionInterval pAction)
        {
            CCEaseExponentialInOut cCEaseExponentialInOut = new CCEaseExponentialInOut();

            if (cCEaseExponentialInOut != null)
            {
                cCEaseExponentialInOut.initWithAction(pAction);
            }
            return(cCEaseExponentialInOut);
        }
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCEaseExponentialInOut cCEaseExponentialInOut = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCEaseExponentialInOut = new CCEaseExponentialInOut();
                pZone = new CCZone(cCEaseExponentialInOut);
            }
            else
            {
                cCEaseExponentialInOut = pZone.m_pCopyObject as CCEaseExponentialInOut;
            }
            cCEaseExponentialInOut.initWithAction((CCActionInterval)this.m_pOther.copy());
            return(cCEaseExponentialInOut);
        }
예제 #3
0
        /** creates the action */
        public new static CCEaseExponentialInOut actionWithAction(CCActionInterval pAction)
        {
            CCEaseExponentialInOut pRet = new CCEaseExponentialInOut();

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

            return(pRet);
        }
예제 #4
0
        /** creates the action */
        public static new CCEaseExponentialInOut actionWithAction(CCActionInterval pAction)
        {
            CCEaseExponentialInOut pRet = new CCEaseExponentialInOut();

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

            return pRet;
        }
        public override object Copy(ICopyable pZone)
        {
            CCEaseExponentialInOut pCopy;

            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = pZone as CCEaseExponentialInOut;
            }
            else
            {
                pCopy = new CCEaseExponentialInOut();
            }

            pCopy.InitWithAction((CCActionInterval) (m_pOther.Copy()));

            return pCopy;
        }
예제 #6
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCEaseExponentialInOut pCopy = null;

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

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

            return(pCopy);
        }
예제 #7
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCEaseExponentialInOut pCopy = null;

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

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

            return pCopy;
        }
예제 #8
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 CCEaseExponentialInOut((CCActionInterval) move.Copy());
            var move_ease_back = move_ease.Reverse(); //-. reverse()

            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));
        }
 public static new CCEaseExponentialInOut Create(CCActionInterval pAction)
 {
     var pRet = new CCEaseExponentialInOut();
     pRet.InitWithAction(pAction);
     return pRet;
 }
예제 #10
0
 public CCEaseExponentialInOut(CCEaseExponentialInOut easeExponentialInOut)
     : base(easeExponentialInOut)
 {
 }