Esempio n. 1
0
        public static new CCEaseBackIn actionWithAction(CCActionInterval pAction)
        {
            CCEaseBackIn cCEaseBackIn = new CCEaseBackIn();

            if (cCEaseBackIn != null)
            {
                cCEaseBackIn.initWithAction(pAction);
            }
            return(cCEaseBackIn);
        }
Esempio n. 2
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCEaseBackIn cCEaseBackIn = null;

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

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

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

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

            return(pRet);
        }
Esempio n. 5
0
        public override CCObject copyWithZone(CCZone pZone) 
        {
            CCZone pNewZone = null;
            CCEaseBackIn pCopy = null;

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

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

            return pCopy;
        }
Esempio n. 6
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone       pNewZone = null;
            CCEaseBackIn pCopy    = null;

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

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

            return(pCopy);
        }
Esempio 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_in = new CCEaseBackIn((CCActionInterval) (move.Copy()));
            var move_ease_in_back = move_ease_in.Reverse();

            var move_ease_out = new CCEaseBackOut((CCActionInterval) (move.Copy()));
            var move_ease_out_back = move_ease_out.Reverse();

            var delay = new CCDelayTime (0.25f);

            var seq1 = CCSequence.FromActions(move, delay, move_back, (CCFiniteTimeAction) delay.Copy());
            var seq2 = CCSequence.FromActions(move_ease_in, (CCFiniteTimeAction) delay.Copy(), move_ease_in_back, (CCFiniteTimeAction) delay.Copy());
            var seq3 = CCSequence.FromActions(move_ease_out, (CCFiniteTimeAction) delay.Copy(), move_ease_out_back,
                                                (CCFiniteTimeAction) delay.Copy());

            m_grossini.RunAction(new CCRepeatForever (seq1));
            m_tamara.RunAction(new CCRepeatForever (seq2));
            m_kathia.RunAction(new CCRepeatForever (seq3));
        }
Esempio n. 8
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCEaseBackIn.actionWithAction((CCActionInterval)this.m_pOther.reverse()));
 }