Esempio n. 1
0
        /// <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;
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public CCActionEaseState(CCActionEase action, CCNode target) : base(action, target)
 {
     InnerActionState = (CCFiniteTimeActionState)action.InnerAction.StartAction(target);
 }
Esempio n. 6
0
 public CCActionEaseState (CCActionEase action, CCNode target) : base (action, target)
 {
     InnerActionState = (CCFiniteTimeActionState)action.InnerAction.StartAction (target);
 }
Esempio n. 7
0
 protected CCActionEase(CCActionEase actionEase) : base(actionEase)
 {
     InitWithAction((CCActionInterval) (actionEase.m_pInner.Copy()));
 }
Esempio n. 8
0
 protected CCActionEase(CCActionEase actionEase) : base(actionEase)
 {
     InitWithAction((CCActionInterval)(actionEase.m_pInner.Copy()));
 }
Esempio n. 9
0
 public override CCFiniteTimeAction Reverse()
 {
     return(CCActionEase.actionWithAction((CCActionInterval)m_pOther.Reverse()));
 }