• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# cocos2d.CCActionInterval类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中cocos2d.CCActionInterval的典型用法代码示例。如果您正苦于以下问题:C# CCActionInterval类的具体用法?C# CCActionInterval怎么用?C# CCActionInterval使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CCActionInterval类属于cocos2d命名空间,在下文中一共展示了CCActionInterval类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: actionWithDuration

        public static CCActionInterval actionWithDuration(float d)
        {
            CCActionInterval ret = new CCActionInterval();
            ret.initWithDuration(d);

            return ret;
        }
开发者ID:liwq-net,项目名称:cocos2d-for-xna-windows,代码行数:7,代码来源:CCActionInterval.cs


示例2: actionWithAction

        public static CCRepeatForever actionWithAction(CCActionInterval action)
        {
            CCRepeatForever ret = new CCRepeatForever();
            ret.initWithAction(action);

            return ret;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:CCRepeatForever.cs


示例3: initWithAction

        public bool initWithAction(CCActionInterval action)
        {
            Debug.Assert(action != null);

            m_pInnerAction = action;
            return true;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:CCRepeatForever.cs


示例4: InitWithAction

        protected bool InitWithAction(CCActionInterval action, float fRate)
        {
            Debug.Assert(action != null);

            m_pInnerAction = action;
            m_fSpeed = fRate;

            return true;
        }
开发者ID:homocury,项目名称:cocos2d-xna,代码行数:9,代码来源:CCSpeed.cs


示例5: InitWithAction

 protected virtual bool InitWithAction(CCAction pAction, float duration)
 {
     if (base.InitWithDuration(duration))
     {
         m_fRate = 1.0f;
         m_pOther = pAction as CCActionInterval;
         return true;
     }
     return false;
 }
开发者ID:HarkDev,项目名称:cocos2d-xna,代码行数:10,代码来源:CCDeccelAmplitude.cs


示例6: initWithAction

        /// <summary>
        /// initializes the action
        /// </summary>
        /// <param name="pAction"></param>
        /// <returns></returns>
        public bool initWithAction(CCActionInterval pAction)
        {
		    if (base.initWithDuration(pAction.duration))
		    {
			    m_pOther = pAction;
			    return true;
		    }
		    return false;
		
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:15,代码来源:CCActionEase.cs


示例7: initWithAction

	    /// <summary>
	    /// Initializes 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 bool initWithAction(CCActionInterval pAction, float fPeriod) 
        { 
            if (base.initWithAction(pAction))
		    {
			    m_fPeriod = fPeriod;
			    return true;
		    }

		    return false;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:16,代码来源:CCEaseElastic.cs


示例8: initWithAction

        /// <summary>
        /// Initializes the action with the inner action and the rate parameter
        /// </summary>
        /// <param name="pAction"></param>
        /// <param name="fRate"></param>
        /// <returns></returns>
        public bool initWithAction(CCActionInterval pAction, float fRate) 
        {
            if (base.initWithAction(pAction))
		    {
			    m_fRate = fRate;
			    return true;
		    }

		return false;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:16,代码来源:CCEaseRateAction.cs


示例9: actionWithAction

        public static CCSpeed actionWithAction(CCActionInterval action, float fRate)
        {
            CCSpeed ret = new CCSpeed();

            if (ret != null && ret.initWithAction(action, fRate))
            {
                return ret;
            }

            return null;
        }
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:11,代码来源:CCSpeed.cs


示例10: initWithAction

        /// <summary>
        ///  initializes the action with an inner action that has the amplitude property, and a duration time
        /// </summary>
        public bool initWithAction(CCAction pAction, float duration)
        {
            if (base.initWithDuration(duration))
            {
                m_fRate = 1.0f;
                m_pOther = pAction as CCActionInterval;

                return true;
            }

            return false;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:15,代码来源:CCDeccelAmplitude.cs


示例11: actionWithAction

        /// <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 new CCEaseIn actionWithAction(CCActionInterval pAction, float fRate)
        {
            CCEaseIn pRet = new CCEaseIn();

            if (pRet != null)
            {
                if (pRet.initWithAction(pAction, fRate))
                {
                    //pRet.autorelease();
                }
                else
                {
                    //CC_SAFE_RELEASE_NULL(pRet);
                }
            }
            return pRet;
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:23,代码来源:CCEaseIn.cs


示例12: actionWithAction

        /// <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 new CCEaseElasticOut actionWithAction(CCActionInterval pAction, float fPeriod)
        {
            CCEaseElasticOut pRet = new CCEaseElasticOut();

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

            return pRet;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:24,代码来源:CCEaseElasticOut.cs


示例13: actionWithAction

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

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

            return pRet; 
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:23,代码来源:CCEaseSineInOut.cs


示例14: actionWithAction

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

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

            return pRet;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:23,代码来源:CCEaseExponentialIn.cs


示例15: copyWithZone

        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone tmpZone = zone;
            CCActionInterval ret = null;
            if (tmpZone != null && tmpZone.m_pCopyObject != null)
            {
                ret = (CCActionInterval)(tmpZone.m_pCopyObject);
            }
            else
            {
                // action's base class , must be called using __super::copyWithZone(), after overriding from derived class
                Debug.Assert(false);

                ret = new CCActionInterval();
                tmpZone = new CCZone(ret);
            }

            base.copyWithZone(tmpZone);

            ret.initWithDuration(Duration);

            return ret;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:23,代码来源:CCActionInterval.cs


示例16: NotImplementedException

 CCFiniteTimeAction ICCTransitionEaseScene.easeActionWithAction(CCActionInterval action)
 {
     throw new NotImplementedException();
 }
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:4,代码来源:CCTransitionSplitCols.cs


示例17: Create

 public static new CCEaseExponentialIn Create(CCActionInterval pAction)
 {
     var pRet = new CCEaseExponentialIn();
     pRet.InitWithAction(pAction);
     return pRet;
 }
开发者ID:homocury,项目名称:cocos2d-xna,代码行数:6,代码来源:CCEaseExponentialIn.cs


示例18: easeActionWithAction

 public virtual CCActionInterval easeActionWithAction(CCActionInterval action)
 {
     return CCEaseInOut.actionWithAction(action, 3.0f);
 }
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:4,代码来源:CCTransitionSplitCols.cs


示例19: easeActionWithAction

 public virtual CCFiniteTimeAction easeActionWithAction(CCActionInterval action)
 {
     return action;
 }
开发者ID:Openxlive,项目名称:cocos2d-x-for-xna,代码行数:4,代码来源:CCTransitionFadeTR.cs


示例20: EaseAction

 public CCFiniteTimeAction EaseAction(CCActionInterval action)
 {
     return CCEaseOut.Create(action, 2.0f);
 }
开发者ID:homocury,项目名称:cocos2d-xna,代码行数:4,代码来源:CCTransitionShrinkGrow.cs



注:本文中的cocos2d.CCActionInterval类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# cocos2d.CCBReader类代码示例发布时间:2022-05-26
下一篇:
C# Models.UserInfo类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap