Exemplo n.º 1
0
        /// <summary>
        /// creates the action
        /// </summary>
        /// <param name="pAction"></param>
        /// <returns></returns>
        public new static CCEaseElasticIn actionWithAction(CCActionInterval pAction)
        {
            CCEaseElasticIn pRet = new CCEaseElasticIn();

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

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

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

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

            return(pCopy);
        }
Exemplo n.º 3
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCEaseElasticIn.actionWithAction((CCActionInterval)m_pOther.reverse(), m_fPeriod));
 }