Exemple #1
0
        public static CCActionEase actionWithAction(CCActionInterval pAction)
        {
            CCActionEase cCActionEase = new CCActionEase();

            if (cCActionEase != null)
            {
                cCActionEase.initWithAction(pAction);
            }
            return(cCActionEase);
        }
Exemple #2
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCActionEase cCActionEase = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCActionEase = new CCActionEase();
                pZone        = new CCZone(cCActionEase);
            }
            else
            {
                cCActionEase = pZone.m_pCopyObject as CCActionEase;
            }
            base.copyWithZone(pZone);
            cCActionEase.initWithAction((CCActionInterval)this.m_pOther.copy());
            return(cCActionEase);
        }
        /// <summary>
        /// creates the action
        /// </summary>
        /// <param name="pAction"></param>
        /// <returns></returns>
        public static CCActionEase actionWithAction(CCActionInterval pAction)
        {
            CCActionEase pRet = new CCActionEase();

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

            return pRet;
        }
        /// <summary>
        /// creates the action
        /// </summary>
        /// <param name="pAction"></param>
        /// <returns></returns>
        public static CCActionEase actionWithAction(CCActionInterval pAction)
        {
            CCActionEase pRet = new CCActionEase();

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

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

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

            base.copyWithZone(pZone);

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

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

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

            base.copyWithZone(pZone);

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

            return(pCopy);
        }
Exemple #7
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCActionEase.actionWithAction((CCActionInterval)this.m_pOther.reverse()));
 }