本文整理汇总了C#中cocos2d.CCActionInterval类的典型用法代码示例。如果您正苦于以下问题:C# CCActionInterval类的具体用法?C# CCActionInterval怎么用?C# CCActionInterval使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CCActionInterval类属于cocos2d命名空间,在下文中一共展示了CCActionInterval类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: actionWithDuration
public static CCActionInterval actionWithDuration(float d)
{
CCActionInterval ret = new CCActionInterval();
ret.initWithDuration(d);
return ret;
}
示例2: actionWithAction
public static CCRepeatForever actionWithAction(CCActionInterval action)
{
CCRepeatForever ret = new CCRepeatForever();
ret.initWithAction(action);
return ret;
}
示例3: initWithAction
public bool initWithAction(CCActionInterval action)
{
Debug.Assert(action != null);
m_pInnerAction = action;
return true;
}
示例4: InitWithAction
protected bool InitWithAction(CCActionInterval action, float fRate)
{
Debug.Assert(action != null);
m_pInnerAction = action;
m_fSpeed = fRate;
return true;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}