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

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

            return(pRet);
        }
Exemplo n.º 2
0
        /// <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 CCEaseElastic actionWithAction(CCActionInterval pAction, float fPeriod)
        {
            CCEaseElastic pRet = new CCEaseElastic();

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

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

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

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

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

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

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

            return pCopy;
        }
Exemplo n.º 5
0
 public CCEaseElasticState(CCEaseElastic action, CCNode target) : base(action, target)
 {
     Period = action.Period;
 }
Exemplo n.º 6
0
 protected CCEaseElastic(CCEaseElastic easeElastic) : base(easeElastic)
 {
     InitWithAction((CCActionInterval) (easeElastic.m_pInner.Copy()), easeElastic.m_fPeriod);
 }
Exemplo n.º 7
0
 protected CCEaseElastic(CCEaseElastic easeElastic) : base(easeElastic)
 {
     InitWithAction((CCActionInterval)(easeElastic.m_pOther.Copy()), easeElastic.m_fPeriod);
 }
Exemplo n.º 8
0
 public CCEaseElasticState (CCEaseElastic action, CCNode target) : base (action, target)
 {
     Period = action.Period;
 }