コード例 #1
0
ファイル: CCEaseRateAction.cs プロジェクト: liwq-net/liwq718
        /// <summary>
        /// Creates the action with the inner action and the rate parameter
        /// </summary>
        /// <param name="pAction"></param>
        /// <param name="fRate"></param>
        /// <returns></returns>
        public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate)
        {
            CCEaseRateAction pRet = new CCEaseRateAction();

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

            return(pRet);
        }
コード例 #2
0
        public override object Copy(ICopyable pZone)
        {
            CCEaseRateAction pCopy;

            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCEaseRateAction) (pZone);
            }
            else
            {
                pCopy = new CCEaseRateAction();
            }

            pCopy.InitWithAction((CCActionInterval) (m_pOther.Copy()), m_fRate);

            return pCopy;
        }
コード例 #3
0
ファイル: CCEaseRateAction.cs プロジェクト: liwq-net/liwq718
        /// <summary>
        /// Creates the action with the inner action and the rate parameter
        /// </summary>
        /// <param name="pAction"></param>
        /// <param name="fRate"></param>
        /// <returns></returns>
        public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate)
        {
            CCEaseRateAction pRet = new CCEaseRateAction();

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

            return pRet;
        }
コード例 #4
0
ファイル: CCEaseRateAction.cs プロジェクト: liwq-net/liwq718
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone           pNewZone = null;
            CCEaseRateAction pCopy    = null;

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

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

            return(pCopy);
        }
コード例 #5
0
ファイル: CCEaseRateAction.cs プロジェクト: liwq-net/liwq718
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCEaseRateAction pCopy = null;

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

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

            return pCopy;
        }
コード例 #6
0
 public CCEaseRateAction (CCEaseRateAction easeRateAction) : base (easeRateAction)
 {
     InitWithAction((CCActionInterval) (easeRateAction.m_pOther.Copy()), easeRateAction.m_fRate);
 }
コード例 #7
0
 public CCEaseRateActionState(CCEaseRateAction action, CCNode target) : base(action, target)
 {
     Rate = action.Rate;
 }
コード例 #8
0
 public CCEaseRateAction(CCEaseRateAction easeRateAction) : base(easeRateAction)
 {
     InitWithAction((CCActionInterval)(easeRateAction.m_pOther.Copy()), easeRateAction.m_fRate);
 }
コード例 #9
0
 public CCEaseRateActionState (CCEaseRateAction action, CCNode target) : base (action, target)
 {
     Rate = action.Rate;
 }
コード例 #10
0
 public static CCEaseRateAction Create(CCActionInterval pAction, float fRate)
 {
     var pRet = new CCEaseRateAction();
     pRet.InitWithAction(pAction, fRate);
     return pRet;
 }
コード例 #11
0
ファイル: CCEaseRateAction.cs プロジェクト: liwq-net/liwq718
 public override CCFiniteTimeAction Reverse()
 {
     return(CCEaseRateAction.actionWithAction((CCActionInterval)m_pOther.Reverse(), 1 / m_fRate));
 }