public static new CCEaseSineIn actionWithAction(CCActionInterval pAction)
        {
            CCEaseSineIn cCEaseSineIn = new CCEaseSineIn();

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

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

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

            return(pRet);
        }
Exemple #4
0
        public override object Copy(ICopyable pZone)
        {
            CCEaseSineIn pCopy;

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

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

            return pCopy;
        }
        /// <summary>
        /// creates the action
        /// </summary>
        /// <param name="pAction"></param>
        /// <returns></returns>
        public new static CCEaseSineIn actionWithAction(CCActionInterval pAction) 
        {
            CCEaseSineIn pRet = new CCEaseSineIn();

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

            return pRet; 
        }
Exemple #6
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone       pNewZone = null;
            CCEaseSineIn pCopy    = null;

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

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

            //CC_SAFE_DELETE(pNewZone);
            return(pCopy);
        }
        public override CCObject copyWithZone(CCZone pZone) 
        {
            CCZone pNewZone = null;
            CCEaseSineIn pCopy = null;

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

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

            //CC_SAFE_DELETE(pNewZone);
            return pCopy;
        }
        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 CCEaseSineIn((CCActionInterval) move.Copy());
            var move_ease_in_back = move_ease_in.Reverse();

            var move_ease_out = new CCEaseSineOut((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));
        }
Exemple #9
0
 public override CCFiniteTimeAction Reverse()
 {
     return(CCEaseSineIn.actionWithAction((CCActionInterval)m_pOther.Reverse()));
 }
Exemple #10
0
 public static new CCEaseSineIn Create(CCActionInterval pAction)
 {
     var pRet = new CCEaseSineIn();
     pRet.InitWithAction(pAction);
     return pRet;
 }
Exemple #11
0
 public CCEaseSineIn(CCEaseSineIn easesineIn)
     : base(easesineIn)
 {
 }