Exemplo n.º 1
0
        public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate)
        {
            CCEaseRateAction cCEaseRateAction = new CCEaseRateAction();

            if (cCEaseRateAction != null)
            {
                cCEaseRateAction.initWithAction(pAction, fRate);
            }
            return(cCEaseRateAction);
        }
Exemplo n.º 2
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCEaseRateAction cCEaseRateAction = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCEaseRateAction = new CCEaseRateAction();
                pZone            = new CCZone(cCEaseRateAction);
            }
            else
            {
                cCEaseRateAction = (CCEaseRateAction)pZone.m_pCopyObject;
            }
            cCEaseRateAction.initWithAction((CCActionInterval)this.m_pOther.copy(), this.m_fRate);
            return(cCEaseRateAction);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates the action with the inner action and the rate parameter
        /// </summary>
        /// <param name="pAction"></param>
        /// <param name="fRate"></param>
        /// <returns></returns>
        public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate)
        {
            CCEaseRateAction pRet = new CCEaseRateAction();

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

            return(pRet);
        }
        /// <summary>
        /// Creates the action with the inner action and the rate parameter
        /// </summary>
        /// <param name="pAction"></param>
        /// <param name="fRate"></param>
        /// <returns></returns>
        public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate)
        {
            CCEaseRateAction pRet = new CCEaseRateAction();

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

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

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

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

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

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

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

            return pCopy;
        }
Exemplo n.º 7
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCEaseRateAction.actionWithAction((CCActionInterval)this.m_pOther.reverse(), 1f / this.m_fRate));
 }