Esempio n. 1
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 new static CCEaseInOut actionWithAction(CCActionInterval pAction, float fRate)
        {
            CCEaseInOut pRet = new CCEaseInOut();

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

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

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

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

            return(pCopy);
        }
Esempio n. 3
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCEaseInOut.actionWithAction((CCActionInterval)m_pOther.reverse(), m_fRate));
 }