Ejemplo n.º 1
0
        public static new CCEaseElasticInOut actionWithAction(CCActionInterval pAction, float fPeriod)
        {
            CCEaseElasticInOut cCEaseElasticInOut = new CCEaseElasticInOut();

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

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCEaseElasticInOut = new CCEaseElasticInOut();
                pZone = new CCZone(cCEaseElasticInOut);
            }
            else
            {
                cCEaseElasticInOut = pZone.m_pCopyObject as CCEaseElasticInOut;
            }
            cCEaseElasticInOut.initWithAction((CCActionInterval)this.m_pOther.copy(), this.m_fPeriod);
            return(cCEaseElasticInOut);
        }
        /// <summary>
        /// Creates the action with the inner action and the period in radians (default is 0.3)
        /// </summary>
        /// <param name="pAction"></param>
        /// <param name="fPeriod"></param>
        /// <returns></returns>
        public static new CCEaseElasticInOut actionWithAction(CCActionInterval pAction, float fPeriod)
        {
            CCEaseElasticInOut pRet = new CCEaseElasticInOut();

            if (pRet != null)
            {
                if (pRet.initWithAction(pAction, fPeriod))
                {
                    //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 CCEaseElasticInOut actionWithAction(CCActionInterval pAction)
        {
            CCEaseElasticInOut pRet = new CCEaseElasticInOut();

            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;
            CCEaseElasticInOut pCopy    = null;

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

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

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

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

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

            return pCopy;
        }